1
0
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:
Stephen Crane 2018-11-11 11:59:43 +00:00
parent 9a643171a6
commit d6dfbe06ef
3 changed files with 17 additions and 2 deletions

View File

@ -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

View File

@ -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;

View File

@ -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