Skip to content

Instantly share code, notes, and snippets.

@Airrr17
Airrr17 / PlayMODfromSDtoDAC.ino
Created April 26, 2019 20:17
Random MOD player for ESP32 with OLED and button.
// Airrr's i2s random MOD player with "skipnext" button and OLED
//main library: https://github.com/earlephilhower/ESP8266Audio
//DAC (PCM5102):
//3.3V -> VCC, 33V, XMT, (SCK)
//GND -> GND, FLT, DMP, FMT, SCL
//BCLK->BCK to Pin D26 ESP32
//I2SO->DIN to Pin D22
//LRCLK(WS)->LCK to Pin D25
//OLED SSD1306:
//SDA -> D21, SCL -> D4
@Airrr17
Airrr17 / ay_player.ino
Last active July 11, 2023 17:22 — forked from anteo/ay_player.ino
Arduino UNO + AY player + OLED
/////////////////////////////////////////////////////////////
//0.96" 128x32 i2c OLED. SDA=A4, SCL=A5
/////////////////////////////////////////////////////////////
#include <SPI.h>
#include "SdFat.h"
#include "SSD1306Ascii.h"
#include "SSD1306AsciiAvrI2c.h"
#define I2C_ADDRESS 0x3C
//#define RST_PIN -1