Update schematic for final build setup, adjust code for finalized build

This commit is contained in:
KemoNine 2019-06-12 22:28:42 -04:00
parent 67ed72aaf3
commit 834249cfda
4 changed files with 9 additions and 8 deletions

View File

@ -10,7 +10,8 @@ An Arduino based build that allows testing and reading various sensors (used els
| 1 | SparkFun QWIIC Proto Shield |
| 1 | Arduino Proto Shield |
| 3 | Push button |
| 1 | MAX6816EUS+T (Button Debounce) |
| 1 | MAX6816EUS+T (Button Debounce) |
| 1 | MAX6817EUT+T (Button Debounce) |
| 1 | Adafruit 2.2" TFT LCD |
| 2 | 4.7k Resistor |
| 1 | SparkFun RGB LED Breakout - WS2812B |

View File

@ -19,7 +19,7 @@ I2CSoilMoistureSensor sensor_soil_catnip;
// Various tunables
#define ERROR_LED_PIN 13
#define ERROR_LED_LIGHTUP_STATE HIGH
#define PIXEL_PIN 40 // pin of pixel
#define PIXEL_PIN 2 // pin of pixel -- 40 for metro on board pixel
#define PIXEL_MAX_BRIGHTNESS 48 // 255 max
#define PIXEL_MIN_BRIGHTNESS 4 // 0 min
#define BREATHE_DELAY 5 // milliseconds
@ -106,12 +106,12 @@ void setup() {
tft.setCursor(tft.width() / 2 - 138, tft.height() / 2 + 10);
tft.println("Press Up/Down");
pinMode(BUTTON_UP, INPUT_PULLUP);
pinMode(BUTTON_DOWN, INPUT_PULLUP);
pinMode(BUTTON_OK, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(BUTTON_UP), InterruptHandlerButtonUp, RISING);
attachInterrupt(digitalPinToInterrupt(BUTTON_DOWN), InterruptHandlerButtonDown, RISING);
attachInterrupt(digitalPinToInterrupt(BUTTON_OK), InterruptHandlerButtonOk, RISING);
pinMode(BUTTON_UP, INPUT);
pinMode(BUTTON_DOWN, INPUT);
pinMode(BUTTON_OK, INPUT);
attachInterrupt(digitalPinToInterrupt(BUTTON_UP), InterruptHandlerButtonUp, FALLING);
attachInterrupt(digitalPinToInterrupt(BUTTON_DOWN), InterruptHandlerButtonDown, FALLING);
attachInterrupt(digitalPinToInterrupt(BUTTON_OK), InterruptHandlerButtonOk, FALLING);
sem_btn_up = xSemaphoreCreateBinary();
sem_btn_down = xSemaphoreCreateBinary();

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB