1
0
forked from me/IronOS

Convert IMU to IRQ for rotation

This moves the rotation detection to use the IRQ2 line. Fixes #44
This commit is contained in:
Ben V. Brown
2017-08-08 16:38:21 +10:00
parent a10947cdac
commit 42e6818114
6 changed files with 52 additions and 17 deletions

View File

@@ -414,10 +414,7 @@ void DrawUI() {
static uint16_t lastSolderingDrawnTemp2 = 0;
static uint8_t settingsLongTestScrollPos = 0;
uint16_t temp = readIronTemp(0, 0, 0xFFFF);
if (systemSettings.OrientationMode == 2) {
//Automatic mode
OLED_SetOrientation(!getOrientation());
}
switch (operatingMode) {
case STARTUP:
//We are chilling in the idle mode