Skip to content

Instantly share code, notes, and snippets.

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)
#define CLK 2
#define DT 3
#define SW 4
int counter = 0;
int currentStateCLK;
int lastStateCLK;
String currentDir ="";
unsigned long lastButtonPress = 0;