Skip to content

Instantly share code, notes, and snippets.

@schreibfaul1
schreibfaul1 / MAX7219_ LED_7segm_8digits.cpp
Created February 24, 2024 07:21
MAX7219_ LED_7segm_8digits
#include "Arduino.h"
void display_start();
void DisplayText(char *text);
void setup() {
Serial.begin(115200);
display_start();
DisplayText("01234567");
}
@schreibfaul1
schreibfaul1 / esp32_hob2hood.cpp
Last active February 23, 2024 12:35
ESP32_ Hob2Hood
#include "Arduino.h"
#define VENTILATION_OFF 0x00D8D9DA
#define VENTILATION_LEVEL1 0x006C6D6E
#define VENTILATION_LEVEL2 0x0037B838
#define VENTILATION_LEVEL3 0x003878B8
#define VENTILATION_LEVEL4 0x00727374 // not used, have only three
#define LIGHT_ON 0x00D2D3D4
#define LIGHT_OFF 0x001ABADA
@schreibfaul1
schreibfaul1 / 74HC595_ LED_7segm_8digits.cpp
Created February 23, 2024 07:55
LED 7 segment dusplay with 74HC595 and 8 digits
#include "Arduino.h"
void display_start();
void display_value(const char* value);
int indexOf (const char* base, char ch, int startIndex);
void setup(){
display_start();
}
// external HW
// 24-bit I2S Interface INMP441 Omnidirectional Microphone
// I2S PCM5102A DAC Decoder
#include "Arduino.h"
#include "driver/i2s.h"
#define TX_I2S_DOUT 25 // connect with external DAC
#define TX_I2S_BCLK 27
// AI-Thinker A1S Audioboard V2.2
// for default SPI GPIOs remove C58...C61 or use JTag GPIOs
// Display with Touchpad 320x240px, 3.3V relevant, controller: ILI9431
#include "Arduino.h"
#include "WiFi.h"
#include "SPI.h"
#include "SD.h"
#include "FS.h"
#include "Wire.h"
@schreibfaul1
schreibfaul1 / DDS_AD9850.ino
Created October 6, 2019 16:53
ESP32 AD9850 (DDS Signal Generator)
#include "Arduino.h"
#include "SPI.h"
// Digital I/O used
#define AD9850_CS 21
#define AD9850_RST 22
// Global variables
uint32_t AD9850_CLOCK=125000000; // Module crystal frequency. Tweak here for accuracy.
uint32_t sweep=0;