Skip to content

Instantly share code, notes, and snippets.

View HeatfanJohn's full-sized avatar

John P Masseria HeatfanJohn

View GitHub Profile
@HeatfanJohn
HeatfanJohn / CHIP setup
Last active May 6, 2019 22:13
NextThing CHIP initial setup instructions
nmcli d wifi list | more
sudo nmcli d wifi connect attwifi
mkdir .ssh
# from Linux host scp authorized_keys file
scp chip@<ip address of CHIP>:.ssh/id_rsa .ssh/id_rsa
scp chip@<ip address of CHIP>:.ssh/authorized_keys .ssh/authorized_keys
sudo apt-get update
sudo apt-get install git build-essential curl htop w3m
sudo vi /etc/hostname
sudo vi /etc/hosts
man hostname
sudo hostname myrpi3
hostname
uname -a
sudo init 0
passwd
mkdir .ssh
sudo apt-get update
#!/bin/bash
#
# This bash script dynamically sets the current tty's rows and cols
# to the device's physical size
#
# Below is typical call from ~/.bashrc
#if [ "/dev/ttyGS0" = "/dev/ttyGS0" ]; then
# export TERM='xterm'
@HeatfanJohn
HeatfanJohn / code.py
Last active January 13, 2023 22:41 — forked from wildestpixel/code.py
Pimoroni Pico Display Pack Circuitpython updated for version 7.0.0 running code
"""
adapted from http://helloraspberrypi.blogspot.com/2021/01/raspberry-pi-picocircuitpython-st7789.html
"""
import os
import board
import time
import terminalio
import displayio
import busio