ATtiny 88
ATtiny 88
#define FASTLED_FORCE_SOFTWARE_SPI
// Use if you want to force non-accelerated pin access
#define FASTLED_FORCE_SOFTWARE_PINS
#include <FastLED.h>
#include <Button.h> // https://github.com/madleech/Button
pinMode(BOTAO_RELAY01, INPUT_PULLUP);
pinMode(BOTAO_RELAY02, INPUT_PULLUP);
pinMode(BOTAO_RELAY03, INPUT_PULLUP);
}
void loop() {
// Read the state of remote buttons
rem_button01_state = digitalRead(REM_BOTAO01_PIN);
rem_button02_state = digitalRead(REM_BOTAO02_PIN);
rem_button03_state = digitalRead(REM_BOTAO03_PIN);
// Show the updated LEDs with the new pattern and brightness
FastLED.show();
delay(1000 / FRAMES_PER_SECOND); // Limit the frame rate
}