Skip to content

Instantly share code, notes, and snippets.

View rtxsc's full-sized avatar
🎯
Focusing

rtxcoder rtxsc

🎯
Focusing
View GitHub Profile
1 1 2 3 4 5
2 2 4 6 8 10
3 3 6 9 12 15
5 76 43 28 13 1 6
6 98 41 23 15 2 7
7 101 60 20 9 2 7
8 81 46 19 13 3 9
9 80 57 20 24 4 10
10 111 63 17 34 6 13
11 149 61 18 31 5 10
12 142 96 24 32 3 8
13 117 79 18 43 4 8
@rtxsc
rtxsc / max7219_8x8_4d_scrolltext.py
Last active September 23, 2022 10:15
Just a simple micropython code to handle text animation on 8x8 LED Matrix (4 digit) on Raspberry Pi Pico
from machine import Pin, SPI
import utime, time
import math
import max7219
spi0 = SPI(0,sck=Pin(2),mosi=Pin(3)) # SCK = CLK || TX = DIN(mosi) || cs = CSn
cs = Pin(9, Pin.OUT)
spi1 = SPI(1,sck=Pin(10),mosi=Pin(11)) # SCK = CLK || TX = DIN(mosi) || cs = CSn
cs2 = Pin(13, Pin.OUT)
@rtxsc
rtxsc / rpm_speed_sensor.ino
Last active June 10, 2022 08:57
Simple Arduino Speed Sensor based on Hall Effect Sensor
#define INTERVAL_METHOD
// #define USE_TM1637 // comment this line if you dont have the display
#define ENABLE_SERIAL_DEBUG
#ifdef USE_TM1637
#include <TM1637Display.h>
#endif
#define CLK 8
#define DIO 9
@rtxsc
rtxsc / esp_readSignalData.ino
Last active November 12, 2021 12:06 — forked from elizabethn119/espreadsignal.ino
[ReadAPI for ESP boards] Added with deserializeJson() to extract out specific value from specific signal key.
// ReadAPI implementation for ESP board
// Credit to Initial State's @elizabethn119
#include <HTTPClient.h>
#include <ArduinoJson.h>
#include <WiFi.h>
const char* ssid = "WiFi NAME";
const char* password = "WiFi PASSWORD";
const char* accesskey = "ENTER ACCESS KEY HERE";
const char* bucketkey = "ENTER BUCKET KEY HERE";