mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Working OLED in test mode.
This commit is contained in:
parent
9ce6dde1e7
commit
f29168a998
8 changed files with 330 additions and 204 deletions
|
@ -37,7 +37,6 @@
|
|||
#include "drivers/pwm_mapping.h"
|
||||
#include "drivers/pwm_rx.h"
|
||||
#include "drivers/adc.h"
|
||||
#include "drivers/display_ug2864hsweg01.h"
|
||||
|
||||
#include "flight/flight.h"
|
||||
#include "flight/mixer.h"
|
||||
|
@ -117,10 +116,6 @@ void productionDebug(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
void displayInit(void)
|
||||
{
|
||||
ug2864hsweg01InitI2C();
|
||||
}
|
||||
void init(void)
|
||||
{
|
||||
uint8_t i;
|
||||
|
@ -144,6 +139,8 @@ void init(void)
|
|||
|
||||
initBoardAlignment(&masterConfig.boardAlignment);
|
||||
|
||||
displayInit();
|
||||
|
||||
// We have these sensors; SENSORS_SET defined in board.h depending on hardware platform
|
||||
sensorsSet(SENSORS_SET);
|
||||
// drop out any sensors that don't seem to work, init all the others. halt if gyro is dead.
|
||||
|
@ -300,13 +297,6 @@ int main(void) {
|
|||
init();
|
||||
|
||||
while (1) {
|
||||
#if 1
|
||||
delay(200);
|
||||
displayInit();
|
||||
delay(100);
|
||||
i2c_OLED_set_line(0);
|
||||
i2c_OLED_send_string("TEST");
|
||||
#endif
|
||||
loop();
|
||||
processLoopback();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue