arduino-libraries / Arduino_MKRIoTCarrier

Use the features included with the Arduino MKR IoT Carrier
https://store.arduino.cc/mkr-iot-carrier
GNU Lesser General Public License v2.1
18 stars 11 forks source link

Fix overwriting single button sensitivity #47

Closed altugbakan closed 2 years ago

altugbakan commented 2 years ago

Hi everyone, the syntax for updating an individual button sensitivity should be like this:

void updateConfig(int newSens, touchButtons padIndex);

I think this example means to do that, but it's missing the padIndex, so I have added it.

github-actions[bot] commented 2 years ago

Memory usage change @ d69dd496b0b4e6a888f15eb69babe62dd2aa4d5f

Board flash % RAM for global variables %
arduino:samd:mkrwifi1010 :small_red_triangle: 0 - +44 0.0 - +0.02 0 - 0 0.0 - 0.0
Click for full report table Board|examples/Actuators/Buzzer_Melody
flash|%|examples/Actuators/Buzzer_Melody
RAM for global variables|%|examples/Actuators/Relays_blink
flash|%|examples/Actuators/Relays_blink
RAM for global variables|%|examples/All_Features
flash|%|examples/All_Features
RAM for global variables|%|examples/Grove_Inputs
flash|%|examples/Grove_Inputs
RAM for global variables|%|examples/LEDs-Examples/strandtest
flash|%|examples/LEDs-Examples/strandtest
RAM for global variables|%|examples/SD_card
flash|%|examples/SD_card
RAM for global variables|%|examples/Sensors/ENV-HTS221/ReadSensors
flash|%|examples/Sensors/ENV-HTS221/ReadSensors
RAM for global variables|%|examples/Sensors/ENV-HTS221/ReadSensorsImperial
flash|%|examples/Sensors/ENV-HTS221/ReadSensorsImperial
RAM for global variables|%|examples/Sensors/IMU-LSM6DS3/SimpleAccelerometer
flash|%|examples/Sensors/IMU-LSM6DS3/SimpleAccelerometer
RAM for global variables|%|examples/Sensors/IMU-LSM6DS3/SimpleGyroscope
flash|%|examples/Sensors/IMU-LSM6DS3/SimpleGyroscope
RAM for global variables|%|examples/Sensors/Light-APDS9960/FullExample
flash|%|examples/Sensors/Light-APDS9960/FullExample
RAM for global variables|%|examples/Sensors/Light-APDS9960/GestureSensor
flash|%|examples/Sensors/Light-APDS9960/GestureSensor
RAM for global variables|%|examples/Sensors/Light-APDS9960/ProximitySensor
flash|%|examples/Sensors/Light-APDS9960/ProximitySensor
RAM for global variables|%|examples/Sensors/Light-APDS9960/Read_Colors
flash|%|examples/Sensors/Light-APDS9960/Read_Colors
RAM for global variables|%|examples/Sensors/Pressure-LPS22HB/ReadPressure
flash|%|examples/Sensors/Pressure-LPS22HB/ReadPressure
RAM for global variables|%|examples/Sensors/Pressure-LPS22HB/ReadPressureImperial
flash|%|examples/Sensors/Pressure-LPS22HB/ReadPressureImperial
RAM for global variables|%|examples/TouchPads/Custom_Sensitivity
flash|%|examples/TouchPads/Custom_Sensitivity
RAM for global variables|%|examples/TouchPads/Relays_control_Qtouch
flash|%|examples/TouchPads/Relays_control_Qtouch
RAM for global variables|%|examples/TouchPads/TouchTypes
flash|%|examples/TouchPads/TouchTypes
RAM for global variables|%|examples/TouchPads/Touch_and_LEDs
flash|%|examples/TouchPads/Touch_and_LEDs
RAM for global variables|%|examples/TouchPads/Touch_signals
flash|%|examples/TouchPads/Touch_signals
RAM for global variables|%|examples/TouchPads/getTouch
flash|%|examples/TouchPads/getTouch
RAM for global variables|%|examples/Display/Compose_images
flash|%|examples/Display/Compose_images
RAM for global variables|%|examples/Display/Graphics
flash|%|examples/Display/Graphics
RAM for global variables|% -|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|- arduino:samd:mkrwifi1010|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|44|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0
Click for full report CSV ``` Board,examples/Actuators/Buzzer_Melody
flash,%,examples/Actuators/Buzzer_Melody
RAM for global variables,%,examples/Actuators/Relays_blink
flash,%,examples/Actuators/Relays_blink
RAM for global variables,%,examples/All_Features
flash,%,examples/All_Features
RAM for global variables,%,examples/Grove_Inputs
flash,%,examples/Grove_Inputs
RAM for global variables,%,examples/LEDs-Examples/strandtest
flash,%,examples/LEDs-Examples/strandtest
RAM for global variables,%,examples/SD_card
flash,%,examples/SD_card
RAM for global variables,%,examples/Sensors/ENV-HTS221/ReadSensors
flash,%,examples/Sensors/ENV-HTS221/ReadSensors
RAM for global variables,%,examples/Sensors/ENV-HTS221/ReadSensorsImperial
flash,%,examples/Sensors/ENV-HTS221/ReadSensorsImperial
RAM for global variables,%,examples/Sensors/IMU-LSM6DS3/SimpleAccelerometer
flash,%,examples/Sensors/IMU-LSM6DS3/SimpleAccelerometer
RAM for global variables,%,examples/Sensors/IMU-LSM6DS3/SimpleGyroscope
flash,%,examples/Sensors/IMU-LSM6DS3/SimpleGyroscope
RAM for global variables,%,examples/Sensors/Light-APDS9960/FullExample
flash,%,examples/Sensors/Light-APDS9960/FullExample
RAM for global variables,%,examples/Sensors/Light-APDS9960/GestureSensor
flash,%,examples/Sensors/Light-APDS9960/GestureSensor
RAM for global variables,%,examples/Sensors/Light-APDS9960/ProximitySensor
flash,%,examples/Sensors/Light-APDS9960/ProximitySensor
RAM for global variables,%,examples/Sensors/Light-APDS9960/Read_Colors
flash,%,examples/Sensors/Light-APDS9960/Read_Colors
RAM for global variables,%,examples/Sensors/Pressure-LPS22HB/ReadPressure
flash,%,examples/Sensors/Pressure-LPS22HB/ReadPressure
RAM for global variables,%,examples/Sensors/Pressure-LPS22HB/ReadPressureImperial
flash,%,examples/Sensors/Pressure-LPS22HB/ReadPressureImperial
RAM for global variables,%,examples/TouchPads/Custom_Sensitivity
flash,%,examples/TouchPads/Custom_Sensitivity
RAM for global variables,%,examples/TouchPads/Relays_control_Qtouch
flash,%,examples/TouchPads/Relays_control_Qtouch
RAM for global variables,%,examples/TouchPads/TouchTypes
flash,%,examples/TouchPads/TouchTypes
RAM for global variables,%,examples/TouchPads/Touch_and_LEDs
flash,%,examples/TouchPads/Touch_and_LEDs
RAM for global variables,%,examples/TouchPads/Touch_signals
flash,%,examples/TouchPads/Touch_signals
RAM for global variables,%,examples/TouchPads/getTouch
flash,%,examples/TouchPads/getTouch
RAM for global variables,%,examples/Display/Compose_images
flash,%,examples/Display/Compose_images
RAM for global variables,%,examples/Display/Graphics
flash,%,examples/Display/Graphics
RAM for global variables,% arduino:samd:mkrwifi1010,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,44,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0 ```
github-actions[bot] commented 2 years ago

Memory usage change @ 2856f21fe0219aaaa964b34a1a558abdf435c1e5

Board flash % RAM for global variables %
arduino:samd:mkrwifi1010 :small_red_triangle: 0 - +44 0.0 - +0.02 0 - 0 0.0 - 0.0
Click for full report table Board|examples/Actuators/Buzzer_Melody
flash|%|examples/Actuators/Buzzer_Melody
RAM for global variables|%|examples/Actuators/Relays_blink
flash|%|examples/Actuators/Relays_blink
RAM for global variables|%|examples/All_Features
flash|%|examples/All_Features
RAM for global variables|%|examples/Grove_Inputs
flash|%|examples/Grove_Inputs
RAM for global variables|%|examples/LEDs-Examples/strandtest
flash|%|examples/LEDs-Examples/strandtest
RAM for global variables|%|examples/SD_card
flash|%|examples/SD_card
RAM for global variables|%|examples/Sensors/ENV-HTS221/ReadSensors
flash|%|examples/Sensors/ENV-HTS221/ReadSensors
RAM for global variables|%|examples/Sensors/ENV-HTS221/ReadSensorsImperial
flash|%|examples/Sensors/ENV-HTS221/ReadSensorsImperial
RAM for global variables|%|examples/Sensors/IMU-LSM6DS3/SimpleAccelerometer
flash|%|examples/Sensors/IMU-LSM6DS3/SimpleAccelerometer
RAM for global variables|%|examples/Sensors/IMU-LSM6DS3/SimpleGyroscope
flash|%|examples/Sensors/IMU-LSM6DS3/SimpleGyroscope
RAM for global variables|%|examples/Sensors/Light-APDS9960/FullExample
flash|%|examples/Sensors/Light-APDS9960/FullExample
RAM for global variables|%|examples/Sensors/Light-APDS9960/GestureSensor
flash|%|examples/Sensors/Light-APDS9960/GestureSensor
RAM for global variables|%|examples/Sensors/Light-APDS9960/ProximitySensor
flash|%|examples/Sensors/Light-APDS9960/ProximitySensor
RAM for global variables|%|examples/Sensors/Light-APDS9960/Read_Colors
flash|%|examples/Sensors/Light-APDS9960/Read_Colors
RAM for global variables|%|examples/Sensors/Pressure-LPS22HB/ReadPressure
flash|%|examples/Sensors/Pressure-LPS22HB/ReadPressure
RAM for global variables|%|examples/Sensors/Pressure-LPS22HB/ReadPressureImperial
flash|%|examples/Sensors/Pressure-LPS22HB/ReadPressureImperial
RAM for global variables|%|examples/TouchPads/Custom_Sensitivity
flash|%|examples/TouchPads/Custom_Sensitivity
RAM for global variables|%|examples/TouchPads/Relays_control_Qtouch
flash|%|examples/TouchPads/Relays_control_Qtouch
RAM for global variables|%|examples/TouchPads/TouchTypes
flash|%|examples/TouchPads/TouchTypes
RAM for global variables|%|examples/TouchPads/Touch_and_LEDs
flash|%|examples/TouchPads/Touch_and_LEDs
RAM for global variables|%|examples/TouchPads/Touch_signals
flash|%|examples/TouchPads/Touch_signals
RAM for global variables|%|examples/TouchPads/getTouch
flash|%|examples/TouchPads/getTouch
RAM for global variables|%|examples/Display/Compose_images
flash|%|examples/Display/Compose_images
RAM for global variables|%|examples/Display/Graphics
flash|%|examples/Display/Graphics
RAM for global variables|% -|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|- arduino:samd:mkrwifi1010|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|44|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0
Click for full report CSV ``` Board,examples/Actuators/Buzzer_Melody
flash,%,examples/Actuators/Buzzer_Melody
RAM for global variables,%,examples/Actuators/Relays_blink
flash,%,examples/Actuators/Relays_blink
RAM for global variables,%,examples/All_Features
flash,%,examples/All_Features
RAM for global variables,%,examples/Grove_Inputs
flash,%,examples/Grove_Inputs
RAM for global variables,%,examples/LEDs-Examples/strandtest
flash,%,examples/LEDs-Examples/strandtest
RAM for global variables,%,examples/SD_card
flash,%,examples/SD_card
RAM for global variables,%,examples/Sensors/ENV-HTS221/ReadSensors
flash,%,examples/Sensors/ENV-HTS221/ReadSensors
RAM for global variables,%,examples/Sensors/ENV-HTS221/ReadSensorsImperial
flash,%,examples/Sensors/ENV-HTS221/ReadSensorsImperial
RAM for global variables,%,examples/Sensors/IMU-LSM6DS3/SimpleAccelerometer
flash,%,examples/Sensors/IMU-LSM6DS3/SimpleAccelerometer
RAM for global variables,%,examples/Sensors/IMU-LSM6DS3/SimpleGyroscope
flash,%,examples/Sensors/IMU-LSM6DS3/SimpleGyroscope
RAM for global variables,%,examples/Sensors/Light-APDS9960/FullExample
flash,%,examples/Sensors/Light-APDS9960/FullExample
RAM for global variables,%,examples/Sensors/Light-APDS9960/GestureSensor
flash,%,examples/Sensors/Light-APDS9960/GestureSensor
RAM for global variables,%,examples/Sensors/Light-APDS9960/ProximitySensor
flash,%,examples/Sensors/Light-APDS9960/ProximitySensor
RAM for global variables,%,examples/Sensors/Light-APDS9960/Read_Colors
flash,%,examples/Sensors/Light-APDS9960/Read_Colors
RAM for global variables,%,examples/Sensors/Pressure-LPS22HB/ReadPressure
flash,%,examples/Sensors/Pressure-LPS22HB/ReadPressure
RAM for global variables,%,examples/Sensors/Pressure-LPS22HB/ReadPressureImperial
flash,%,examples/Sensors/Pressure-LPS22HB/ReadPressureImperial
RAM for global variables,%,examples/TouchPads/Custom_Sensitivity
flash,%,examples/TouchPads/Custom_Sensitivity
RAM for global variables,%,examples/TouchPads/Relays_control_Qtouch
flash,%,examples/TouchPads/Relays_control_Qtouch
RAM for global variables,%,examples/TouchPads/TouchTypes
flash,%,examples/TouchPads/TouchTypes
RAM for global variables,%,examples/TouchPads/Touch_and_LEDs
flash,%,examples/TouchPads/Touch_and_LEDs
RAM for global variables,%,examples/TouchPads/Touch_signals
flash,%,examples/TouchPads/Touch_signals
RAM for global variables,%,examples/TouchPads/getTouch
flash,%,examples/TouchPads/getTouch
RAM for global variables,%,examples/Display/Compose_images
flash,%,examples/Display/Compose_images
RAM for global variables,%,examples/Display/Graphics
flash,%,examples/Display/Graphics
RAM for global variables,% arduino:samd:mkrwifi1010,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,44,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0 ```