mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-21 12:29:51 +00:00
fixes for lm4f
This commit is contained in:
parent
9a643171a6
commit
d6dfbe06ef
@ -1,6 +1,7 @@
|
||||
// TFT display...
|
||||
// NOTE: edit memorysaver.h to select the correct chip for your display!
|
||||
// Daniel Rebollo's boosterpack
|
||||
#define USE_UTFT
|
||||
#define TFT_BACKLIGHT PD_6
|
||||
#define TFT_MODEL SSD1289
|
||||
#define TFT_RS PC_6
|
||||
|
@ -25,7 +25,7 @@ bool sdtape::start(const char *programs)
|
||||
#if defined(ESP8266)
|
||||
SPIFFS.begin();
|
||||
dir = SPIFFS.openDir("/");
|
||||
#else if defined(DISK)
|
||||
#elif defined(DISK)
|
||||
dir = DISK.open(programs);
|
||||
if (!dir)
|
||||
return false;
|
||||
|
@ -40,7 +40,7 @@ void PWM::set_freq(unsigned freq) {
|
||||
ESP_ERROR_CHECK(::ledc_set_freq(SPEED_MODE, TIMER, freq));
|
||||
}
|
||||
|
||||
#else
|
||||
#elif defined(PWM_SOUND)
|
||||
static unsigned pin;
|
||||
|
||||
void PWM::begin(unsigned gpio) {
|
||||
@ -59,4 +59,18 @@ void PWM::stop() {
|
||||
void PWM::set_freq(unsigned freq) {
|
||||
analogWriteFreq(freq);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void PWM::begin(unsigned gpio) {
|
||||
}
|
||||
|
||||
void PWM::set_duty(unsigned duty) {
|
||||
}
|
||||
|
||||
void PWM::stop() {
|
||||
}
|
||||
|
||||
void PWM::set_freq(unsigned freq) {
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user