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
Based on the build from lupyuen/pinetime-rust-mynewt | |
Uses a Raspberry Pi to run OpenOCD which connects to the nRF52 with SMD | |
If required, GDB then runs on top of OpenOCD (OpenOCD has quite a few commands without GDB) | |
Start OpenOCD in a terminal window | |
Currently, I am using the lupyuen/pinetime-rust-mynewt script to flash the nRF52 app which then leaves OpenOCD running, wiating for connections on port 3333 & 4444 | |
TODO - add instrutions to start OpenOCD on its own | |
pi@raspberrypi:~/pinetime-rust-mynewt $ openocd/bin/openocd -f scripts/nrf52-pi/swd-pi.ocd |
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
def get_input_list(): | |
return ['#1 @ 906,735: 28x17', | |
'#2 @ 890,926: 12x29', | |
'#3 @ 806,573: 20x19', | |
'#4 @ 73,196: 16x24', | |
'#5 @ 466,847: 26x27', | |
'#6 @ 157,631: 22x23', | |
'#7 @ 140,175: 18x11', | |
'#8 @ 847,845: 13x16', | |
'#9 @ 337,935: 25x24', |
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
How to get an app onto your badge | |
Update your own fork of the repo with your app: | |
1. Fork the emfcamp/Mk4-Apps repo to your GitHub account | |
2. Clone your repo | |
3. Add your app to the root of your cloned repo | |
4. git add . | |
5. git commit -m "message" | |
6. git push origin master |
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
Firstly, you will need a GitHub account if you haven't already got one, sign up now |
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
RetroPie on PiTop with PiTop speaker (tested on CEED) | |
Connect a keyboard | |
Connect a game pad | |
Fresh boot from V4.1 | |
Configure the game pad | |
Enable and connect WiFi in the RetroPie menu | |
Under the RetroPie Audio settings, force to HDMI and adjust the MIXER volume to max | |
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
# Normal and CEEDS | |
sudo apt-get update | |
sudo apt-get -y install mu | |
sudo apt-get -y install arduino | |
# For "Mapping the Weather" | |
sudo apt-get -y install python3-matplotlib |
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
# Initial code | |
from microbit import * | |
import neopixel | |
np = neopixel.NeoPixel(pin0,16) | |
red = (64,0,0) | |
green = (0,64,0) | |
blue = (0,0,64) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<title>Cheerlights</title> | |
</head> | |
<body> | |
<script> | |
setInterval(function() { | |
// get cheerlights color from field2 with a webservice call |