View turtle-ds-hackathon.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View network-scan.py
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
# https://dev.webonomic.nl/scanning-network-with-the-raspberry-pi-pico-w | |
import network | |
import binascii | |
wlan = network.WLAN() # network.WLAN(network.STA_IF) | |
wlan.active(True) | |
networks = wlan.scan() # list with tupples with 6 fields ssid, bssid, channel, RSSI, security, hidden | |
networks.sort(key=lambda x:x[3],reverse=True) # sorted on RSSI (3) | |
for i, w in enumerate(networks): | |
print(i, w[0].decode(), binascii.hexlify(w[1]).decode(), w[2], w[3], w[4], w[5]) |
View writefile-demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Artificial-Intelligence-in-Core-Courses.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View main.py
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
from machine import Pin, ADC | |
import network | |
from time import sleep | |
import urequests as requests | |
led = Pin("LED", Pin.OUT) | |
led.on() | |
wlan = network.WLAN(network.STA_IF) | |
wlan.active(True) |
View neopixel.txt
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
194 , 80 , 92 | |
120 , 16 , 94 | |
246 , 23 , 109 | |
190 , 112 , 49 | |
248 , 219 , 174 | |
92 , 57 , 223 | |
166 , 89 , 244 | |
186 , 15 , 132 | |
16 , 107 , 28 | |
85 , 142 , 49 |
View log_ip.py
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 socket | |
from datetime import datetime | |
import requests | |
ip = socket.gethostbyname_ex(socket.gethostname())[-1] | |
ethercalc_id = 'iplog' | |
base_url = 'https://ethercalc.net/' | |
post_url = base_url+'_/'+ethercalc_id |
View music-intro.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View RockPaperScissors.java
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 java.util.Scanner; | |
import java.util.Arrays; | |
public class RockPaperScissors | |
{ | |
public static void RockPaperScissors() | |
{ | |
String[] possibleChoices = {"rock", "paper", "scissors"}; | |
Scanner userInput = new Scanner(System.in); // create a Scanner for getting user input | |
String playerChoice = ""; // declare an empty variable that we'll fill with the user input |
View X32_demo.py
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
from pythonosc import udp_client | |
from time import sleep | |
client = udp_client.SimpleUDPClient('192.168.1.126', 10023) | |
for x in range(5): | |
for i in range(9): | |
client.send_message('/ch/0'+str(i)+'/mix/on', 0) | |
client.send_message('/ch/0'+str(i)+'/mix/fader', 0.1) | |
sleep(0.5) | |
for c in range(16): | |
client.send_message('/ch/0'+str(i)+'/config/color', c) |
NewerOlder