Changing from HSPI to FSPI

This commit is contained in:
norbert-walter 2024-09-15 23:49:54 +02:00
parent 91f8ba0e4d
commit 1b7c0f6f11
2 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
#include <Arduino.h> #include <Arduino.h>
#define FASTLED_ALL_PINS_HARDWARE_SPI #define FASTLED_ALL_PINS_HARDWARE_SPI
#define FASTLED_ESP32_SPI_BUS HSPI #define FASTLED_ESP32_SPI_BUS FSPI
#define FASTLED_ESP32_FLASH_LOCK 1 #define FASTLED_ESP32_FLASH_LOCK 1
#include <FastLED.h> // Driver for WS2812 RGB LED #include <FastLED.h> // Driver for WS2812 RGB LED
#include <PCF8574.h> // Driver for PCF8574 output modul from Horter #include <PCF8574.h> // Driver for PCF8574 output modul from Horter
@ -156,12 +156,12 @@ void toggleBacklightLED(uint brightness, CHSV color){
void setFlashLED(bool status){ void setFlashLED(bool status){
static bool oldstatus; static bool oldstatus;
FastLED.setBrightness(255); // Brightness for flash LED
if(status == true){ if(status == true){
fled[0] = CRGB::Red; // Flash LED on in red FastLED.setBrightness(255); // Brightness for flash LED
fled[0] = CRGB::Red; // Flash LED on in red
} }
else{ else{
fled[0] = CRGB::Black; // Flash LED off fled[0] = CRGB::Black; // Flash LED off
} }
FastLED.show(); FastLED.show();
} }
@ -169,8 +169,8 @@ void setFlashLED(bool status){
void blinkingFlashLED(){ void blinkingFlashLED(){
if(blinkingLED == true){ if(blinkingLED == true){
statusLED = !statusLED; // Toggle LED for each run statusLED = !statusLED; // Toggle LED for each run
FastLED.setBrightness(255); // Brightness for flash LED
if(statusLED == true){ if(statusLED == true){
FastLED.setBrightness(255); // Brightness for flash LED
fled[0] = CRGB::Red; // Flash LED on in red fled[0] = CRGB::Red; // Flash LED on in red
} }
else{ else{

View File

@ -4,7 +4,7 @@
#include <Arduino.h> #include <Arduino.h>
#include "OBP60Hardware.h" #include "OBP60Hardware.h"
#define FASTLED_ALL_PINS_HARDWARE_SPI #define FASTLED_ALL_PINS_HARDWARE_SPI
#define FASTLED_ESP32_SPI_BUS HSPI #define FASTLED_ESP32_SPI_BUS FSPI
#define FASTLED_ESP32_FLASH_LOCK 1 #define FASTLED_ESP32_FLASH_LOCK 1
#include <FastLED.h> // Driver for WS2812 RGB LED #include <FastLED.h> // Driver for WS2812 RGB LED
#include <GxEPD2_BW.h> // E-paper lib V2 #include <GxEPD2_BW.h> // E-paper lib V2