Skip to content

Instantly share code, notes, and snippets.

View amateusz's full-sized avatar

Mateusz Grzywacz amateusz

  • AMS NL
View GitHub Profile
@grantland
grantland / AGB-001_Light_Mod.md
Last active January 25, 2023 15:12
AGB-001 Front/Backlight Mod Instructions

AGB-001 Front/Backlight Mod Instructions

AGB-001 Backlight Mod

Requirements

  • AGB-001
  • ASS101 screen
@jperkin
jperkin / rpio.md
Last active October 13, 2023 16:56
Raspberry Pi GPIO Comparison

Comparing node.js GPIO implementations

Here are two simple programs testing the performance of my rpio library against popular alternatives which use the /sys interface (with the number of npm stars indicated for a rough idea of popularity).

rpi-gpio (9 stars)

This test is based on an example on the rpi-gpio page.

As modules which uses /sys depend upon asynchronous behaviour they require callbacks to ensure that the next operation starts only when the previous one has completed.

@FrankWu100
FrankWu100 / 0000-Enable NETDEV Led Trigger.md
Last active January 20, 2022 22:01
Enable NETDEV Led Trigger

config nodes

/sys/class/leds/<led>/device_name

Specifies the network device name to monitor.

/sys/class/leds/<led>/interval

Specifies the duration of the LED blink in milliseconds. Defaults to 50 ms.

/sys/class/leds//link

@todbot
todbot / openocd-samd21.cfg
Last active May 11, 2023 14:33
Program a SAMD21 with OpenOCD and a JLINK
# Program a SAMD21 part with a bootloader using a JLINK / J-LINK
# 0a. Wire up your device with SWD & SWC pins to JLINK
# 0b. Also wire up Gnd and Power to Gnd & VTref on JLINK
# 0c. And separately supply power to device
# 0d. Iif you don't have openocd installed, then "brew install openocd"
#
# 1. Put this file in a directory
# 2. Get a samd21 bootloader file.bin and put it in this directory renamed as "bootloader.bin"
# 3. Unplug and replug in the JLINK (to reset it)
# 4. Then do "openocd -f ./openocd-sams21.cfg" and stand back