moved neopixels configuration to esp32.h; note: make sure not to use the psram spi pins!
This commit is contained in:
parent
6040443eaf
commit
ff3e5ba604
3 changed files with 5 additions and 5 deletions
|
@ -7,12 +7,11 @@
|
|||
|
||||
#include "console_esp32.h"
|
||||
#include "cpu.h"
|
||||
#include "esp32.h"
|
||||
#include "error.h"
|
||||
#include "utils.h"
|
||||
|
||||
|
||||
#define NEOPIXELS_PIN 25
|
||||
|
||||
console_esp32::console_esp32(std::atomic_uint32_t *const stop_event, std::vector<Stream *> & io_ports, const int t_width, const int t_height) :
|
||||
console(stop_event, t_width, t_height),
|
||||
io_ports(io_ports)
|
||||
|
@ -62,7 +61,7 @@ void console_esp32::refresh_virtual_terminal()
|
|||
|
||||
void console_esp32::panel_update_thread()
|
||||
{
|
||||
#if !defined(BUILD_FOR_RP2040)
|
||||
#if !defined(BUILD_FOR_RP2040) && defined(NEOPIXELS_PIN)
|
||||
Serial.println(F("panel task started"));
|
||||
|
||||
cpu *const c = b->getCpu();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// (C) 2018-2023 by Folkert van Heusden
|
||||
// (C) 2018-2024 by Folkert van Heusden
|
||||
// Released under MIT license
|
||||
|
||||
#pragma once
|
||||
|
@ -12,3 +12,5 @@
|
|||
#define SD_FAT_TYPE 1
|
||||
#include <SdFat.h>
|
||||
#endif
|
||||
|
||||
// #define NEOPIXELS_PIN 24
|
||||
|
|
|
@ -323,7 +323,6 @@ void setup() {
|
|||
rl02_dev->begin();
|
||||
b->add_rl02(rl02_dev);
|
||||
|
||||
|
||||
Serial.println(F("Init TTY"));
|
||||
tty_ = new tty(cnsl, b);
|
||||
Serial.println(F("Connect TTY to bus"));
|
||||
|
|
Loading…
Add table
Reference in a new issue