#snek

1 messages ¡ Page 1 of 1 (latest)

split thicket
#

@fierce kraken here you go!

fierce kraken
#

Thanks @split thicket !

crimson hollow
#

🐍 ?

neat sun
#

Don't step on snek.

fierce kraken
#

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...

neat sun
#

I was browsing the website.

neon cradle
#

Did you have questions?

#

@fierce kraken thanks for setting this up!

split thicket
#

welcome @neon cradle. I added you to the snek role as well

crude kite
#

This seems pretty cool

neat sun
#

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

neon cradle
#

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 🙂

near cradle
#

hmmm

#

i was looking for something , like , this

orchid briar
#

no step on snek?

neon cradle
#

@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)

orchid briar
#

I dunno, was making a joke, not sure what this actually does. 😎

neon cradle
#

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

marble sinew
#

Is the Arduino Uno a candidate for running snek?

neon cradle
#

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

crystal fern
#

@neon cradle really nice project, good luck with it!

neon cradle
#

@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.

marble sinew
#

That’s great @neon cradle ! Thanks for the follow up

neon cradle
meager dirge
#

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. 😉

vestal topaz
#

snek is its own thing, independent from micropython

meager dirge
#

Thanks!

neat sun
#

"Snek: For when MicroPython is still not micro enough"

neon cradle
#

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)

oak relic
#

@marble sinew

crude loom
#

@chrome lava

chrome lava
#

what? why ping?

crude loom
#

I cant use python Modules -- Any soltions

vestal topaz
#

well, it's not python, so no surprise there

frank cliff
#

10/10

prisma gull
#

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

feral pond
prisma gull
#

Hmm... Probably would be just for fun... The boss just exists right now

#

Unless I could add RAM?

sleek cliff
# prisma gull 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)

prisma gull
#

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

sleek cliff
#

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

prisma gull
#

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...

sleek cliff
#

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

prisma gull
#

XD

crude spear
#

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.