Skip to content

Instantly share code, notes, and snippets.

View brentru's full-sized avatar
🖥️
hackin'

Brent Rubell brentru

🖥️
hackin'
View GitHub Profile
@brentru
brentru / package_drazzy.com_index.json
Created June 7, 2023 21:47
Archive of package_drazzy.com_index.json from 05/04/2023
{
"packages": [
{
"name": "ATTinyCore",
"maintainer": "Spence Konde",
"websiteURL": "https://web.archive.org/web/20230504110614/https://github.com/SpenceKonde/ATTinyCore",
"email": "",
"help": {
"online": ""
},

Update: NeoPixel

sequenceDiagram
autonumber
IO->>Device: PixelsDeleteRequest
Note over IO, Device: Contains<br> `pixels_type` of PIXELS_TYPE_NEOPIXEL<br>pixels_pin_data according to DB
IO-->>Device: PixelsCreateRequest
Note over IO, Device: Contains:<br> `pixels_type` of PIXELS_TYPE_NEOPIXEL<br>`pixels_num` according to form<br>`pixels_ordering` according to form<br> `pixels_brightness` of 0<br>`pixels_pin_neopixel` according to form<br> `pixels_pin_dotstar_data` is unused<br>`pixels_pin_dotstar_clock` is unused
Device->>IO: PixelsCreateResponse
Note over Device,IO: `is_success`, true if init'd OK
### Update: NeoPixel

```mermaid
sequenceDiagram
autonumber
IO->>Device: PixelsDeleteRequest
Note over IO, Device: Contains<br> `pixels_type` of PIXELS_TYPE_NEOPIXEL<br>pixels_pin_data according to DB
IO-->>Device: PixelsCreateRequest
Note over IO, Device: Contains:<br> `pixels_type` of PIXELS_TYPE_NEOPIXEL<br>`pixels_num` according to form<br>`pixels_ordering` according to form<br> `pixels_brightness` of 0<br>`pixels_pin_neopixel` according to form<br> `pixels_pin_dotstar_data` is unused<br>`pixels_pin_dotstar_clock` is unused
In file included from /Users/brentrubell/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork/src/FatLib/FatFile.h:36,
from /Users/brentrubell/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork/src/FatLib/ArduinoFiles.h:33,
from /Users/brentrubell/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork/src/FatLib/FatLib.h:27,
from /Users/brentrubell/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork/src/SdFat.h:33,
from /Users/brentrubell/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork/examples/ReadWrite/ReadWrite.ino:22:
/Users/brentrubell/Documents/Arduino/libraries/SdFat_-_Adafruit_Fork/src/FatLib/FatApiConstants.h:47: warning: "O_RDONLY" redefined
#define O_RDONLY 0X00 ///< Open for reading only.
In file included from /Users/brentrubell/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/gcc8_4_0-esp-2020r3/xtensa-esp32s2-elf/sys-include/sys/fcntl.h:3,
from /Users/brentrubell/Library/Arduino15/packages/esp32/hardwar
# simpletest - cursor control
from micropython import const
import digitalio
import board
import time
from gamepadshift import GamePadShift
from adafruit_bitmap_font import bitmap_font
from adafruit_button import Button
import os
import displayio

CircuitPython in 2019

Wishlist for 2019:

  • Continued networking support:
    • 2018 brought support for LoRaWAN, BLE, and the beginnings of ESP-coprocessor support for WiFi.
    • Also linux devices (like the Raspberry Pi) can now be programmed in CircuitPython and communicate with Adafruit IO.
  • Async
    • Much like a few of these recaps, I'd like to see support (or the beginnings of supporting) asynchronous programing in CircuitPython.
  • Low-Power Modes
    • DeepSleep for ESP-based devices (@danh had this as well on his list).
/******************************************************************************
*
* Copyright (C) 2009 - 2014 Xilinx, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
/******************************************************************************
*
* Copyright (C) 2009 - 2014 Xilinx, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
@brentru
brentru / octodeux-config.txt
Created May 19, 2017 16:16
Two Octoprint Instances on 1x Raspberry Pi
** INSTRUCTIONS FROM A MEMBER OF THE 3D PRINTING CLUB ON FACEBOOK (https://www.facebook.com/groups/3Dprintingclub/) **
sudo cp /etc/init.d/octoprint /etc/init.d/octoprint2
sudo cp /etc/default/octoprint /etc/default/octoprint2
sudo nano /etc/init.d/octoprint2
change the following.
Provides: octoprint to Provides: octoprint2
NAME="Octoprint" to NAME="Octoprint2"
PKGNAME=octoprint to PKGNAME=octoprint2
save
exit
@brentru
brentru / config.fish
Created August 13, 2016 05:58
Prevent RM'ing in FISH shell
# propts user before running rm
alias rm='echo | xargs -p rm'