Skip to content

Commit

Permalink
Changing from HSPI to FSPI
Browse files Browse the repository at this point in the history
  • Loading branch information
norbert-walter committed Sep 15, 2024
1 parent 91f8ba0 commit 1b7c0f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/obp60task/OBP60Extensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <Arduino.h>
#define FASTLED_ALL_PINS_HARDWARE_SPI
#define FASTLED_ESP32_SPI_BUS HSPI
#define FASTLED_ESP32_SPI_BUS FSPI
#define FASTLED_ESP32_FLASH_LOCK 1
#include <FastLED.h> // Driver for WS2812 RGB LED
#include <PCF8574.h> // Driver for PCF8574 output modul from Horter
Expand Down Expand Up @@ -156,21 +156,21 @@ void toggleBacklightLED(uint brightness, CHSV color){

void setFlashLED(bool status){
static bool oldstatus;
FastLED.setBrightness(255); // Brightness for flash LED
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{
fled[0] = CRGB::Black; // Flash LED off
fled[0] = CRGB::Black; // Flash LED off
}
FastLED.show();
}

void blinkingFlashLED(){
if(blinkingLED == true){
statusLED = !statusLED; // Toggle LED for each run
FastLED.setBrightness(255); // Brightness for flash LED
if(statusLED == true){
FastLED.setBrightness(255); // Brightness for flash LED
fled[0] = CRGB::Red; // Flash LED on in red
}
else{
Expand Down
2 changes: 1 addition & 1 deletion lib/obp60task/OBP60Extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <Arduino.h>
#include "OBP60Hardware.h"
#define FASTLED_ALL_PINS_HARDWARE_SPI
#define FASTLED_ESP32_SPI_BUS HSPI
#define FASTLED_ESP32_SPI_BUS FSPI
#define FASTLED_ESP32_FLASH_LOCK 1
#include <FastLED.h> // Driver for WS2812 RGB LED
#include <GxEPD2_BW.h> // E-paper lib V2
Expand Down

0 comments on commit 1b7c0f6

Please sign in to comment.