Raspberry Pi 3 B+ を NOOBS 1.92からセットアップ直後からスタートする。
利用するGPS製品ははこれ
GPS受信機キット 1PPS出力付き 「みちびき」対応: センサ一般 秋月電子通商 電子部品 ネット通販
Vcc
GND
Txd
Rxd
と 1pps出力の5線あるうち1pps出力以外の4線を利用する。
Vcc に 5V、TxdとRxdは3.3VでOK
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, initial-scale=1.0, user-scalable=no"> | |
<title>map</title> | |
<style> | |
html, body, #map-canvas {height: 97%; margin: 0; padding: 0} | |
table {border-collapse:collapse; margin:0; padding:0} | |
tr, td {margin:0; padding:0} |
Raspberry Pi 3 B+ を NOOBS 1.92からセットアップ直後からスタートする。
利用するGPS製品ははこれ
GPS受信機キット 1PPS出力付き 「みちびき」対応: センサ一般 秋月電子通商 電子部品 ネット通販
Vcc
GND
Txd
Rxd
と 1pps出力の5線あるうち1pps出力以外の4線を利用する。
Vcc に 5V、TxdとRxdは3.3VでOK
2016-01-23
@voluntas
0.1.2
#!/bin/bash | |
# | |
# This version uses September 2017 august stretch image, please use this image | |
# | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi |
The plan is to create a pair of executables (ngrok
and ngrokd
) that are connected with a self-signed SSL cert. Since the client and server executables are paired, you won't be able to use any other ngrok
to connect to this ngrokd
, and vice versa.
Add two DNS records: one for the base domain and one for the wildcard domain. For example, if your base domain is domain.com
, you'll need a record for that and for *.domain.com
.
inline code
# Digital Watch Face | |
# | |
# Author: Tony Goodhew (28th January 2023) | |
# Updates: Toby Roberts, Andrew Scheller & Alasdair Allan (March 2023) | |
# | |
# Original code taken from https://www.instructables.com/Digital-Watch-Display-MicroPython/ | |
from machine import Pin,I2C,SPI,PWM | |
import framebuf | |
import time |
The Brother PTP300BT label maker is intended to be controlled using the official Brother P-Touch Design & Print iOS/Android app. The app has arbitrary limits on what you can print (1 text object and up to 3 preset icons), so I thought it would be a fun challenge to reverse engineer the protocol to print whatever I wanted.
Python code at the bottom if you want to skip the fine details.
Intitially I had a quick peek at the Android APK to see if there was any useful information inside. The code that handles the communication with the printer in Print&Design turned out to be a native library, but the app clearly prepares a bitmap image and passes it to this native library for printing. Bitmaps are definitely something we can work with.