This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SD.h" | |
// https://github.com/espressif/arduino-esp32/blob/master/libraries/SPI/src/SPI.h | |
// https://wiki.wemos.cc/_media/products:d32:sch_d32_pro_v2.0.0.pdf | |
void setup() { | |
Serial.begin(115200); | |
SPI.begin(18, 19, 23, 4); | |
if(!SD.begin(4)){ | |
Serial.println("Card Mount Failed"); | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
// initialize digital pin LED_BUILTIN as an output. | |
pinMode(LED_BUILTIN, OUTPUT); | |
} | |
// the loop function runs over and over again forever | |
void loop() { | |
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) | |
delay(1000); // wait for a second | |
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reference: This list was adapted from the table located here: | |
// http://www.phy.mtu.edu/~suits/notefreqs.html | |
const float note_C0 = 16.35; //C0 | |
const float note_Db0 = 17.32; //C#0/Db0 | |
const float note_D0 = 18.35; //D0 | |
const float note_Eb0 = 19.45; //D#0/Eb0 | |
const float note_E0 = 20.6; //E0 | |
const float note_F0 = 21.83; //F0 | |
const float note_Gb0 = 23.12; //F#0/Gb0 | |
const float note_G0 = 24.5; //G0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define BLYNK_PRINT Serial | |
#include "Wire.h" | |
#include "WEMOS_Motor.h" | |
#include <Arduino.h> | |
#include <U8g2lib.h> | |
#include "musical_notes.h" | |
#ifdef U8X8_HAVE_HW_SPI | |
#include <SPI.h> | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
from luma.core.interface.serial import spi | |
from luma.core.render import canvas | |
from luma.lcd.device import pcd8544, st7735, uc1701x | |
from PIL import ImageFont, ImageDraw | |
from RPi import GPIO | |
from luma.lcd.aux import backlight |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
from luma.core.interface.serial import spi | |
from luma.core.render import canvas | |
from luma.lcd.device import pcd8544, st7735, uc1701x | |
from RPi import GPIO | |
from luma.lcd.aux import backlight | |
serial = spi(port=0, device=0, gpio_DC=23, gpio_RST=24) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
from luma.core.interface.serial import spi | |
from luma.core.render import canvas | |
from luma.lcd.device import pcd8544, st7735, uc1701x | |
from RPi import GPIO | |
from luma.lcd.aux import backlight | |
serial = spi(port=0, device=0, gpio_DC=23, gpio_RST=24) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
from luma.core.interface.serial import spi | |
from luma.core.render import canvas | |
from luma.lcd.device import pcd8544, st7735, uc1701x | |
from RPi import GPIO | |
from luma.lcd.aux import backlight | |
serial = spi(port=0, device=0, gpio_DC=23, gpio_RST=24) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
from luma.core.interface.serial import spi | |
from luma.core.render import canvas | |
from luma.lcd.device import pcd8544, st7735, uc1701x | |
from RPi import GPIO | |
from luma.lcd.aux import backlight | |
serial = spi(port=0, device=0, gpio_DC=23, gpio_RST=24) |
NewerOlder