This file contains hidden or 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
| 000000 Officially Xerox | |
| 000001 SuperLAN-2U | |
| 000002 BBN (was internal usage only, no longer used) | |
| 000003 XEROX CORPORATION | |
| 000004 XEROX CORPORATION | |
| 000005 XEROX CORPORATION | |
| 000006 XEROX CORPORATION | |
| 000007 XEROX CORPORATION | |
| 000008 XEROX CORPORATION | |
| 000009 powerpipes? |
This file contains hidden or 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
| // drawWidgets() is added by bootloader.js when loading a clock app, but when you upload via the IDE it just | |
| // resets the watch and skips out running bootloader.js completely. So add the relevant code from the bootloader. | |
| var WIDGETPOS={tl:32,tr:g.getWidth()-32,bl:32,br:g.getWidth()-32}; | |
| var WIDGETS={}; | |
| function drawWidgets() { for (var w of WIDGETS) w.draw(); } | |
| require("Storage").list().filter(a=>a[0]=='=').forEach( | |
| widget=>eval(require("Storage").read(widget))); | |
| setTimeout(drawWidgets,100); |
This file contains hidden or 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 socket | |
| import network | |
| import machine | |
| ssid = 'MicroPython-AP' | |
| password = '123456789' | |
| led = machine.Pin("LED",machine.Pin.OUT) | |
| ap = network.WLAN(network.AP_IF) |
This file contains hidden or 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
| from micropython import const | |
| from ustruct import unpack as unp | |
| # Author David Stenwall (david at stenwall.io) | |
| # See https://github.com/dafvid/micropython-bmp280 | |
| # SPDX-License-Identifier: MIT | |
| # Power Modes | |
| BMP280_POWER_SLEEP = const(0) | |
| BMP280_POWER_FORCED = const(1) |
This file contains hidden or 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 network | |
| import socket | |
| import time | |
| from machine import Pin | |
| import uasyncio as asyncio | |
| led = Pin(15, Pin.OUT) | |
| onboard = Pin("LED", Pin.OUT, value=0) |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import SimpleHTTPServer | |
| class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
| def end_headers(self): | |
| self.send_my_headers() | |
| SimpleHTTPServer.SimpleHTTPRequestHandler.end_headers(self) | |
| def send_my_headers(self): | |
| self.send_header("Cache-Control", "no-cache, no-store, must-revalidate") |
This file contains hidden or 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 network | |
| import socket | |
| import time | |
| import struct | |
| from machine import Pin | |
| NTP_DELTA = 2208988800 | |
| host = "pool.ntp.org" |
This file contains hidden or 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
| ''' | |
| I2C_SDA -> 6 | |
| I2C_SDA -> 7 | |
| DC -> 8 | |
| CS -> 9 | |
| SCK -> 10 | |
| DIN -> 11 | |
| RST -> 12 | |
| BL -> 25 | |
| BAT_ADC -> 29 |
This file contains hidden or 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
| """ | |
| "Hello World!" | |
| For https://www.tindie.com/products/adz1122/pi-pico-rp2040-128-inch-tft-display-watch-board/ | |
| Using GC9A01 Display Driver for MicroPython (https://github.com/russhughes/gc9a01_mpy) | |
| DISPLAY | |
| ======= | |
| Pin |
This file contains hidden or 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
| #!/bin/bash | |
| # https://retropie.org.uk/forum/topic/2295/runcommand-warning-if-voltage-temperature-throttling | |
| #Flag Bits | |
| UNDERVOLTED=0x1 | |
| CAPPED=0x2 | |
| THROTTLED=0x4 | |
| HAS_UNDERVOLTED=0x10000 | |
| HAS_CAPPED=0x20000 |
NewerOlder