Compare commits
2 Commits
5fb35c96cb
...
c3b50d46e1
Author | SHA1 | Date | |
---|---|---|---|
c3b50d46e1 | |||
2beb0639ea |
10
build/dimensioner.sh
Normal file
10
build/dimensioner.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir workspace
|
||||||
|
cd workspace
|
||||||
|
git clone https://github.com/micropython/micropython.git
|
||||||
|
cd micropython
|
||||||
|
make -C mpy-cross
|
||||||
|
cd ports/rp2
|
||||||
|
make submodules
|
||||||
|
make BOARD=RPI_PICO FROZEN_MANIFEST=../../../../src/dimensioner/manifest.py
|
@ -87,6 +87,8 @@ ZERO_BUTTON_PIN = 13 # Pin to read if hardware zero button is pressed
|
|||||||
UNITS_BUTTON_PIN = 14 # Pin to read if hardware unit change button is pressed
|
UNITS_BUTTON_PIN = 14 # Pin to read if hardware unit change button is pressed
|
||||||
FIRMWARE_VERSION = "1.0"
|
FIRMWARE_VERSION = "1.0"
|
||||||
|
|
||||||
|
machine.freq(240000000) # Set CPU to 240MHz (about twice as fast as default)
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB configuration
|
# USB configuration
|
||||||
#
|
#
|
||||||
|
7
src/dimensioner/manifest.py
Normal file
7
src/dimensioner/manifest.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Build manifest for PostalPoint Parcel Dimensioner
|
||||||
|
require("usb-device-hid")
|
||||||
|
require("ssd1306")
|
||||||
|
module("dimensioner_utils.py")
|
||||||
|
module("dimensioner_screen.py")
|
||||||
|
module("ssd1306big.py")
|
||||||
|
module("main.py")
|
Loading…
x
Reference in New Issue
Block a user