Skip to content

Commit 94420de

Browse files
committed
going for v0.3.0
1 parent b441fec commit 94420de

File tree

3 files changed

+14
-27
lines changed

3 files changed

+14
-27
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# DumbDisplay MicroPython Library (v0.3.0) #
1+
# DumbDisplay MicroPython Library (v0.3.0)
22

33
DumbDisplay MicroPython Library is a port of the Arduino DumbDisplay Library (https://github.com/trevorwslee/Arduino-DumbDisplay)
44
for the DumbDisplay Android app -- https://play.google.com/store/apps/details?id=nobody.trevorlee.dumbdisplay
@@ -120,15 +120,15 @@ Notes:
120120
121121
122122
123-
## Enjoy! May God bless you! Peace be with you! Jesus loves you! ##
123+
## Enjoy! Peace be with you! May God bless you! Jesus loves you!
124124
125125
126126
127127
# Change History
128128
129129
v0.3.0
130130
- checked Raspberry Pi Pico W WIFI support
131-
- port more options from Arduino DumbDisplay library
131+
- ported more options from Arduino DumbDisplay library
132132
- bug fixes
133133
134134
v0.2.1

samples/melody/main.py

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
)
1919
def wave_prog():
2020
pull(block)
21-
mov(x, osr) # waveCount
21+
mov(x, osr) # waveCount
2222
pull(block)
2323
label("loop")
24-
mov(y, osr) # halfWaveNumCycles
25-
set(pins, 1) # high
24+
mov(y, osr) # halfWaveNumCycles
25+
set(pins, 1) # high
2626
label("high")
2727
jmp(y_dec, "high")
28-
mov(y, osr) # halfWaveNumCycles
29-
set(pins, 0) # low
28+
mov(y, osr) # halfWaveNumCycles
29+
set(pins, 0) # low
3030
label("low")
3131
jmp(y_dec, "low")
3232
jmp(x_dec, "loop")
@@ -38,23 +38,13 @@ def wave_prog():
3838
def HWPlayTone(freq: int, duration: int):
3939
halfWaveNumCycles = round((100000.0 / 2) / freq) # 2 is the number of cycles per half wave
4040
waveCount = round(duration * freq / 1000.0)
41-
#print(". freq", freq)
42-
#print(". duration", duration)
43-
#print(". halfWaveNumCycles", halfWaveNumCycles)
44-
#print(". waveCount", waveCount)
45-
#sm.active(1)
46-
#start_ms = time.ticks_ms()
4741
sm.put(waveCount)
4842
sm.put(halfWaveNumCycles) # 2 * (x / 10) == blink time
49-
# res = sm.get()
50-
# #taken_ms = time.ticks_ms() - start_ms
51-
# #print(f"= got result {res} in {taken_ms:.2} ms")
52-
# sm.active(0)
5343
except:
5444
print("*****")
55-
print("* No HWPlayToneBlocked")
45+
print("* No HWPlayTone")
5646
print("*****")
57-
HWPlayToneBlocked = None
47+
HWPlayTone = None
5848

5949

6050
Song = "G C E C E D C A G G C E C E D G E G E G E C G A C C A G G C E C E D C Z"
@@ -97,7 +87,6 @@ def HWPlayTone(freq: int, duration: int):
9787

9888
BeatSpeed = 300
9989

100-
#TOP_HEIGHT = 30
10190
TOP_HEIGHT = 50
10291
KEY_WIDTH = 14
10392
KEY_HEIGHT = 80
@@ -172,8 +161,6 @@ def __init__(self):
172161
self.playToSpeaker = False
173162
self.restart = False
174163
self.adhocFreq = -1
175-
#self.lyricColIdx = -1
176-
#self.lyricRowIdx = -1
177164

178165
dd.recordLayerSetupCommands()
179166

@@ -191,7 +178,7 @@ def __init__(self):
191178
self.lyricLayer.margin(2)
192179
self.lyricLayer.border(2, "blue", "round")
193180
self.lyricLayer.backgroundColor("lightgray")
194-
self.lyricLayer.setTextFont("DL::Roboto")
181+
self.lyricLayer.setTextFont("DL::Roboto") # use the downloaded font Roboto ... https://fonts.google.com/specimen/Roboto
195182

196183
if not HWPlayTone:
197184
self.targetLayer.disabled()

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
setuptools.setup(
77
name='uDumbDisplayLib',
8-
version='0.2.0',
8+
version='0.3.0',
99
author='Trevor Lee',
10-
author_email='trev_lee@hotmail.com',
11-
description='Micro-Python DumbDisplay Library',
10+
author_email='trevorwslee@gmail.com',
11+
description='MicroPython DumbDisplay Library',
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",
1414
url='https://github.com/trevorwslee/MicroPython-DumbDisplay',

0 commit comments

Comments
 (0)