[FL-1942] Applications: Display Test. u8g2 usage refactoring. #770

This commit is contained in:
あく
2021-10-17 23:34:36 +03:00
committed by GitHub
parent 19be061693
commit f390060922
23 changed files with 617 additions and 6861 deletions

View File

@@ -1,7 +1,20 @@
#include <furi-hal.h>
#include <stm32wbxx_ll_utils.h>
void furi_hal_init() {
furi_hal_i2c_init();
furi_hal_light_init();
furi_hal_spi_init();
}
}
void delay(float milliseconds) {
LL_mDelay((uint32_t)milliseconds);
}
void delay_us(float microseconds) {
microseconds = microseconds / 1000;
if(microseconds < 1) {
microseconds = 1;
}
LL_mDelay((uint32_t)microseconds);
}