Skip to content

Instantly share code, notes, and snippets.

#include "driver/rmt.h"
static rmt_item32_t items[3] = {
{{ 5000, 1, 4000, 0 }},
{{ 5000, 1, 4000, 0 }},
{{ 5000, 1, 4000, 0 }}
};
// { 4000, 1, 4000, 0 },
https://reqres.in/

light intensity on mobile phone

samsung hidden menu #0#

under Sensors, light intensity. Unfortunately, my el cheapo doesn't have it

iphone app called photone

#include <util/atomic.h> // For the ATOMIC_BLOCK macro
#define ENCA 2 // YELLOW
#define ENCB 3 // WHITE
#define PWM 10
#define IN2 7
#define IN1 8
volatile int posi = 0; // specify posi as volatile: https://www.arduino.cc/reference/en/language/variables/variable-scope-qualifiers/volatile/
long prevT = 0;
#!/usr/bin/env python
# For raspberry pi. LIBGL_ALWAYS_SOFTWARE=1 python pyglettest.py
import pyglet
from dataclasses import dataclass
from colormath.color_objects import XYZColor, sRGBColor
from colormath.color_conversions import convert_color
@raspberrypisig
raspberrypisig / main.py
Created March 22, 2024 08:07
python cookiecutter template
import requests
resp = requests.get("http://example.com")
print(resp.text)