This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import analogio | |
import digitalio | |
import board | |
import gamepadshift | |
import displayio | |
import math | |
import random | |
from adafruit_display_shapes.circle import Circle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The MIT License (MIT) | |
# | |
# Copyright (c) 2017 Michael McWethy | |
# | |
# 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) break supervisor_flash_init_vfs | |
Breakpoint 6 at 0x2b512: file ../../supervisor/shared/flash.c, line 190. | |
(gdb) load | |
Loading section .text, size 0x35b84 lma 0x2000 | |
Loading section .ARM.exidx, size 0x8 lma 0x37b84 | |
Loading section .data, size 0x17c lma 0x37b8c | |
Start address 0x2000, load size 220424 | |
Transfer rate: 35876 KB/sec, 13776 bytes/write. | |
(gdb) monitor reset | |
Resetting target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MICROPY_HW_BOARD_NAME "Espress0" | |
#define MICROPY_HW_MCU_NAME "samd21e18" | |
// Rev B - Black | |
#define MICROPY_HW_APA102_MOSI (&pin_PA00) | |
#define MICROPY_HW_APA102_SCK (&pin_PA01) | |
// Salae reads 12mhz which is the limit even though we set it to the | |
// safer 8mhz. | |
#define SPI_FLASH_BAUDRATE (8000000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor Covenant Code of Conduct | |
Our Pledge | |
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to | |
making participation in our project and our community a harassment-free experience for everyone, regardless of age, | |
body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, | |
race, religion, or sexual identity and orientation. | |
Our Standards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import busio | |
from adafruit_ina219 import INA219 | |
from digitalio import DigitalInOut, Direction, Pull | |
import board | |
from board import * | |
from adafruit_hid.keyboard import Keyboard | |
from adafruit_hid.keycode import Keycode | |
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Hyperbox 1.0 | |
* USB Serial interface using a Cortex M0 dev board + sensors for use with | |
* a Raspberry Pi. | |
* | |
* Current Consumption/Battery Level monitor + Keyboard HID | |
* | |
* Made specifically for use with a Hyperpixel display from Pimoroni | |
* https://github.com/pimoroni/hyperpixel | |
* as it uses up all the GPIO's on a Pi. | |
* |