Nucleo-transfer
Dependencies: ADS1015 MPU6050 PixelArray PixelArray-Nucleo mbed WS2813
Fork of Nucleo-transfer by
Diff: Sensorplate/main.cpp
- Revision:
- 40:a5614befa65f
- Parent:
- 39:cff99a9b7237
- Child:
- 41:5380ada94ec6
--- a/Sensorplate/main.cpp Thu Oct 26 15:33:07 2017 +0000 +++ b/Sensorplate/main.cpp Thu Oct 26 15:34:40 2017 +0000 @@ -579,17 +579,17 @@ batteryvoltage_current = adsAccu.readADC_SingleEnded(0); // because of higher voltage then Vcc of ADC (5.3 V (= Vcc + 0.3 V) max possible at each analog input). powervoltage_current = adsAccu.readADC_SingleEnded(1); // Read channel 1 from external ADC (powervoltage). - if (powervoltage_current < digital_value_ADC_powervoltage_unplugged) { // If statement to set LED's to blue. + if (powervoltage_current < digital_value_ADC_powervoltage_unplugged) { // If statement to set LED's to blue. power_plug_state = 0; LED_colour = 'b'; } else { power_plug_state = 1; } -} +} void read_adc() { - piezo_electric_sample_timer.reset(); // Clock gebruiken o.i.d.? + piezo_electric_sample_timer.reset(); // Clock gebruiken o.i.d.? piezo_electric_sample_timer.start(); connection_test_sensorplate = angle_device_sensorplate.testConnection();