NOTE:
This guide was written more than two years ago, which in Pi years means it's now graduated college, or something. Inevitably, it's at least a little out of date, and it may even be entirely misleading. There are several helpful suggestions in the comments (thanks everyone), and most recently a report that what's here plain doesn't work on current (early 2022) Raspbian. Which isn't even called 'Raspbian' any more.
As of Jan 2022 I'm partially back in my office-which-has-access-to-eduroam, and I do have a need to build up a fresh Pi desktop. If and when I get that working I'll update this guide. In the meantime: good luck, and please leave a comment to report success or failure.
(June 2022) Nope, I still haven't actually tried any of this myself. However, I have had to troubleshoot eduroam wifi on my Linux ThinkPad. As of Ubuntu 22.04 it would no longer connect. [This Stack Exchange answer](https://askubuntu.com/questions/27976
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 machine | |
import inky_frame | |
from pcf85063a import PCF85063A | |
from pimoroni_i2c import PimoroniI2C | |
""" | |
Test sketch to work out wake-from-sleep behaviour on Inky Frame. | |
I spent far too long trying to debug wake-from-sleep. This example code is about |
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
maxUnsigned = 0x1FFFFFFF | |
bitsInUnsigned = int(29) | |
seventyFivePercent = int(22) | |
twelvePercent = int(4) | |
highBits = 0x1E000000 | |
lowBits = 0x01FFFFFF | |
def generateRegCode(userName): | |
reg = "" | |
sn = "" |
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
$ vagrant up --provision | |
__ __ __ __ | |
\ V\ V\ V / Varying Vagrant Vagrants | |
\_/\_/\_/ v2.6.0-git::master | |
Platform: platform-darwin13.4.0 shell:/bin/bash vagrant-hostsupdater vagrant-vbguest | |
Vagrant: v2.2.4, VirtualBox: v6.0.6r130049 | |
VVV Path: "/Users/xxxxx/vagrant-local" | |
Docs: https://varyingvagrantvagrants.org/ |
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 random | |
hearts = { | |
"QR001": [5, 38], | |
"QR002": [15, 60], | |
"QR004": [0, 00], | |
"QR005": [3, 92], | |
"QR093": [0, 92] | |
} |
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 random | |
from itertools import compress, count | |
# Initial list of references | |
source = [0, 1, 3, 4, 0, 5, 7, 0] | |
print source | |
# Build list of indices of source where content is zero | |
empty = compress(count(), [not x for x in source]) | |
emptylist = list(empty) |
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 random | |
# Initial list of references | |
source = [0, 1, 3, 4, 0, 5, 7, 0] | |
print source | |
# Build list of indices of source where content is zero | |
emptylist = [i for i, element in enumerate(source) if element == 0] | |
print emptylist |
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
[ 0.000000] Booting Linux on physical CPU 0x0 | |
[ 0.000000] Initializing cgroup subsys cpuset | |
[ 0.000000] Initializing cgroup subsys cpu | |
[ 0.000000] Initializing cgroup subsys cpuacct | |
[ 0.000000] Linux version 4.4.21-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #911 SMP Thu Sep 15 14:22:38 BST 2016 | |
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d | |
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache | |
[ 0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2 | |
[ 0.000000] cma: Reserved 8 MiB at 0x36800000 | |
[ 0.000000] Memory policy: Data cache writealloc |
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 RED 9 | |
#define AMBER 10 | |
#define GREEN 11 | |
void setup() { | |
pinMode(RED, OUTPUT); | |
pinMode(AMBER, OUTPUT); | |
pinMode(GREEN, OUTPUT); | |
} |
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
for i in 0..( p_count -1 ) do | |
in_thread(name: i) do | |
loop do | |
chime p_freq[i], dur | |
sleep p_sleep[i] | |
end | |
end | |
end |