#snek
1 messages ¡ Page 1 of 1 (latest)
Thanks @split thicket !
đ ?
Don't step on snek.
Hey, @crimson hollow, @neat sun let me know if you need more info on what Snek is and the goals around it.
In a nutshell, Snek is a Python inspired language built for very small microcontrollers (like 2K RAM) and removing all unnecessary complexities of Python to help young people to getting started in programming and robotics...
Every snek program is a valid Python but not the other way around...
I was browsing the website.
welcome @neon cradle. I added you to the snek role as well
This seems pretty cool
I think I kinda understood what I wanted from the reference manual. Dono when I'll have time to play with it, but it sounds fun
I managed to hook up the DAC on the samd21g18a for analog outputs; now 'setpower' really sets the DAC level on the relevant GPIO (PA02).
and, for added fun, I created some new primitives for the circuit playground express, which has a speaker on that pin, to send sine waves out the DAC output.
snek can finally sing songs đ
no step on snek?
@orchid briar - the range operator has a step parameter; was it not working for you? I accidentally extended the range semantics to also work over floats though, so you can do for i in range(0,1,0.1): print(i)
I dunno, was making a joke, not sure what this actually does. đ
Yeah, I figured that out after I replied đ
check out https://sneklang.org if you want to learn more about snek though. I teach middle school kids programming by building robots out of LEGO pieces
Is the Arduino Uno a candidate for running snek?
absolutely
should run the duemilanove bits unchanged. I've been trying to borrow one for testing, but haven't managed
Current snek for duemilanove fits with optiboot, and I think uno's come with that by default. Means you should be able to install it without a dongle
I need to build some scripts for windows and mac for installing stuff to the smaller boards like that
right now, only Linux has scripts that work
@neon cradle really nice project, good luck with it!
@marble sinew I finally got an Arduino UNO to play with and fixed a few issues with snek running on it. Snek needs flow control on the serial port, and that requires new firmware for the ATmega16u2 which does the USB to serial conversion. So, you'll need a programming dongle to re-flash that chip, but once done, you can flash snek directly over the serial port as the UNO comes with Optiboot pre-installed.
Thatâs great @neon cradle ! Thanks for the follow up
@marble sinew the CI system even created a zip file with the necessary bits đ https://github.com/keith-packard/snek/actions/runs/135485371
I just noticed this new channel and when I read the description of Snek, it made me think of Pycopy. How are they related (or not)? You do have a much cuter logo for sure. đ
snek is its own thing, independent from micropython
Thanks!
"Snek: For when MicroPython is still not micro enough"
For instance, Snek runs on an Arduino Duemilanove or Uno. But the real focus for me was early programming education. Snek is a very small language, which I can teach in a few hours to beginning programmers, and they can build interesting applications (LEGO robots) in only a few lines of code. No modules, no imports, no objects.
I'm a huge fan of circuit python and other mid-sized python systems -- they're great when students run out of things to explore with snek, but still want to stick with python syntax instead of 'experiencing' C++ with Arduino.
(I did a crowd supply campaign for snekboard, which runs both snek and circuit python, for instance)
@marble sinew
@chrome lava
what? why ping?
I cant use python Modules -- Any soltions
well, it's not python, so no surprise there
10/10
So I was pointed here because I have a board with an Atmega 328p, but want something like CP -- how hard would it be to get Snek running on this? https://www.adafruit.com/product/3254
You could run snek on the 328p and talk to the co-processor, but you would be really limited by available RAM in terms of how much code space you'd have to talk to the co-processor. Unless this is "just for fun", I don't think it's worth the effort.
Hmm... Probably would be just for fun... The boss just exists right now
Unless I could add RAM?
some AVR chips support external RAM that you can execute programs from but not the 328 IIRC; obviously thereâs storage with I²C and SPI but not any parallel RAM support (you could bit-bang it I think but it might end up at SPI speeds anyway)
Hmm... Depending on what it's used for, a "pagefile" in SPI storage might be useful anyway...
Especially if you want to do pretty static things that just take lots of RAM
indeed, then the performance would become quite specialized to certain use cases; favour speed but lose RAM, favour higher âRAMâ and lose faster on-the-feet operation speed
I think itâs an interesting concept, if itâs not meant for practical use but as a âwhy the heck notâ project I think it could really push some efficient coding/problem solving skills
You could have Snek on a tiny Atmel chip run a bunch of super high resolution displays [or an array of displays with a high resolution] that only update like once a week XD
Might take an hour to update, but just do it at like 4AM when nobody is around...
a giant SPI panel with absurdly high resolution and snek
select an update region
waitingâŚ.
waitingâŚ.
a few hours later, stream pixel data
wait some more
at the break of the next day select a new update region, and the continuum is maintained
XD
How do I start with snek on a raspberry pi? I tried going thru the documentation but was completely unsuccessful. I tried installing the custom version of Mu and it doesnât start.