Also see the original Pieter Noordhuis's guide
You need:
- Raspberry Pi Model B (or B+) with a MicroSD Card $35-40
- An RTL-SDR dongle:
/** | |
* USB HID Keyboard scan codes as per USB spec 1.11 | |
* plus some additional codes | |
* | |
* Created by MightyPork, 2016 | |
* Public domain | |
* | |
* Adapted from: | |
* https://source.android.com/devices/input/keyboard-devices.html | |
*/ |
### Elecrow HDMI 5inch 800x480 LCD display | |
# https://www.amazon.com/Elecrow-Display-Monitor-800x480-Raspberry/dp/B013JECYF2/ | |
# Adopted from the following URL. Modified for clarity and corrections. | |
# https://www.amazon.com/gp/aw/review/B013JECYF2/R3ZXW0VTV8AEB/ref=cm_cr_dp_mb_rvw_1?ie=UTF8&cursor=1 | |
# DOCUMENTATION > CONFIGURATION > CONFIG-TXT | |
# https://www.raspberrypi.org/documentation/configuration/config-txt.md | |
### Display configuration | |
# hdmi_group: 0 auto-detect from EDID; 1 CEA; 2 DMT | |
hdmi_group=2 |
Also see the original Pieter Noordhuis's guide
You need:
This will require the umqtt.simple library on the PicoW,
You can install this with upip by running:
import upip
upip.install('umqtt.simple')
If you use a public MQTT broker such as test.mosquitto.org
you should change the prefix value in line 8 of the micropython from MYNAME
to something unique or you may recieve other peoples commands
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) |