[Snek] [keith-packard/snek] bc46d4: Add pi example
Keith Packard
noreply at github.com
Sat Nov 23 16:45:19 PST 2024
Branch: refs/heads/main
Home: https://github.com/keith-packard/snek
Commit: bc46d402d874109db8c33303bc62137517473dd3
https://github.com/keith-packard/snek/commit/bc46d402d874109db8c33303bc62137517473dd3
Author: Keith Packard <keithp at keithp.com>
Date: 2024-11-21 (Thu, 21 Nov 2024)
Changed paths:
A examples/pi.py
Log Message:
-----------
Add pi example
This computes pi with random numbers
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 38c42d88eba045304d19586d33e378b33fafa569
https://github.com/keith-packard/snek/commit/38c42d88eba045304d19586d33e378b33fafa569
Author: Keith Packard <keithp at keithp.com>
Date: 2024-11-21 (Thu, 21 Nov 2024)
Changed paths:
M ports/duemilanove/Makefile
M snek-builtin.py
M snek.defs
M test/pass-math.py
M test/pass-op.py
M test/pass-random.py
M test/pass-trailing-comma.py
Log Message:
-----------
Add math, random and time names to global namespace (by default)
Add '--global' parameters to snek-builtin.py to match namespaces from
builtin function names, removing those namespaces so that the names
appear in the global namespace. Use '--alias' to also leave the names
in their original namespace for compatibility with existing code.
By default, the math, time and random namespaces aliased.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: b8ff4188c5dadddc177b22a6e01968fd7600f095
https://github.com/keith-packard/snek/commit/b8ff4188c5dadddc177b22a6e01968fd7600f095
Author: Keith Packard <keithp at keithp.com>
Date: 2024-11-21 (Thu, 21 Nov 2024)
Changed paths:
M README.md
M doc/lessons/lesson-1/lesson-1-snekboard.adoc
M doc/lessons/lesson-2/lesson-2-line-bug.adoc
M doc/lessons/lesson-3/bumper-car.py
M doc/lessons/lesson-3/lesson-3-bumper-car.adoc
M doc/snek.adoc
M examples/badshuffle.py
M examples/blink.py
M examples/goodshuffle.py
M examples/hanoi.py
M examples/morse.py
M examples/neopixel.py
M examples/neopixels.py
M examples/servo-car.py
M examples/snek-bsd.py
M examples/snek-car.py
M examples/snek.py
M ports/snekboard/snek-board-test.py
Log Message:
-----------
Update examples and docs to reflect removal of namespaces
Fix all of the code to remove math., time. and random.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: e6e2265d1770102dcf2d8eb6ff53059a668dd1e7
https://github.com/keith-packard/snek/commit/e6e2265d1770102dcf2d8eb6ff53059a668dd1e7
Author: Keith Packard <keithp at keithp.com>
Date: 2024-11-22 (Fri, 22 Nov 2024)
Changed paths:
M chips/atmega/snek-atmega-time.c
M ports/nano-every/snek-nano-every.c
Log Message:
-----------
chips/atmega: Switch ATmega4809 clock to TCB2
TCA0 is way too useful to be stuck as the clock source. Use TCB2
instead.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: f48b7e5a964d3ec8523a2afae0d7a8592b062f80
https://github.com/keith-packard/snek/commit/f48b7e5a964d3ec8523a2afae0d7a8592b062f80
Author: Keith Packard <keithp at keithp.com>
Date: 2024-11-22 (Fri, 22 Nov 2024)
Changed paths:
M ports/nano-every/Makefile
M ports/nano-every/snek-nano-every.c
Log Message:
-----------
ports/nano-every: Implement tone and tonefor
Outputs tones on D5, just like other devices.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: a80d5640ff4e3a6c5f7f568121993dcfd7a6bd56
https://github.com/keith-packard/snek/commit/a80d5640ff4e3a6c5f7f568121993dcfd7a6bd56
Author: Keith Packard <keithp at keithp.com>
Date: 2024-11-22 (Fri, 22 Nov 2024)
Changed paths:
M chips/samd21/snek-gpio.c
Log Message:
-----------
samd21: Use tone(0) in tonefor
off() doesn't work here.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: c382070f359f83caeb245920d897fab1399b1323
https://github.com/keith-packard/snek/commit/c382070f359f83caeb245920d897fab1399b1323
Author: Keith Packard <keithp at keithp.com>
Date: 2024-11-23 (Sat, 23 Nov 2024)
Changed paths:
M chips/atmega/snek-328p.builtin
M ports/duemilanove/Makefile
M ports/lilypad/Makefile
M ports/uno/Makefile
Log Message:
-----------
chips/atmega: Adjust atmega328p memory spaces
Reserve 192 bytes for stack. Shrink the value and vm stacks to make
room. This avoids stack overflows.
Signed-off-by: Keith Packard <keithp at keithp.com>
Compare: https://github.com/keith-packard/snek/compare/746d0c2943c4...c382070f359f
To unsubscribe from these emails, change your notification settings at https://github.com/keith-packard/snek/settings/notifications
More information about the Snek
mailing list