mpu6050 usermod: allow to disable usermod
* added usermod config information (so it can be disabled) * check that "INTERRUPT_PIN" does support interrupts (MM specific) * expose "dmpReady" in public interface * adjusted games usermod to switch to "simulation" in case mpu6050 is not active Still toDo: 1. add interrupt PIN and errormessages to settings page. 2. de-alloc intPin when disabled (and disable interrupt) 3. usermod is still destroying DEBUG_PRINT macros. 4. temporarily disable MPU interrupt when onUpdateBegin(true)
This commit is contained in:
@@ -49,6 +49,7 @@ String PinManagerClass::getOwnerText(PinOwner tag) {
|
||||
case PinOwner::UM_Audioreactive : return(F("AudioReactive (UM)")); break; // audioreative usermod - analog or digital audio input
|
||||
case PinOwner::UM_Temperature : return(F("Temperature (UM)")); break; // "usermod_temperature.h"
|
||||
case PinOwner::UM_PIR : return(F("PIR (UM)")); break; // "usermod_PIR_sensor_switch.h"
|
||||
case PinOwner::UM_IMU : return(F("IMU mpu6050 (UM)")); break; // "usermod_mpu6050_imu.h"
|
||||
case PinOwner::UM_FourLineDisplay : return(F("4Line Display (UM)")); break; // "usermod_v2_four_line_display.h -- May use "standard" HW_I2C pins
|
||||
case PinOwner::UM_RotaryEncoderUI : return(F("Rotary Enc. (UM)")); break; // "usermod_v2_rotary_encoder_ui.h"
|
||||
case PinOwner::UM_MultiRelay : return(F("Multi Relay (UM)")); break; // "usermod_multi_relay.h"
|
||||
|
||||
Reference in New Issue
Block a user