Code Monkey home page Code Monkey logo

Comments (12)

gfwilliams avatar gfwilliams commented on July 20, 2024

From @loop23 on June 3, 2015 12:39

+1
I may give it a try, I'm into sound protocols and would like to study OSC for personal sake

from espruinodocs.

gfwilliams avatar gfwilliams commented on July 20, 2024

Just moved to here, because this can be done as a module rather than as part of the Espruino firmware...

Good idea though.

from espruinodocs.

loop23 avatar loop23 commented on July 20, 2024

Yes, I was going to do it as a module anyway.
The event emitter interface is going to be very useful I believe

from espruinodocs.

loop23 avatar loop23 commented on July 20, 2024

Probably could just port https://www.npmjs.com/package/osc ; Are there any guidelines/tips for "porting node stuff to espruino"?

from espruinodocs.

gfwilliams avatar gfwilliams commented on July 20, 2024

Looks good - it doesn't seem like it's that bloated, it may run with quite minimal changes.

I don't have many tips really - just try and get rid of external dependencies (of which there aren't many) and try and avoid having loads of 'stub' functions like function getX() { return X; }

from espruinodocs.

Jorgen-VikingGod avatar Jorgen-VikingGod commented on July 20, 2024

you guys are awesome.
btw. is there also a DMX module available - or still missing?
thx @loop23 to try/port this. Perhaps I can help on testing

from espruinodocs.

gfwilliams avatar gfwilliams commented on July 20, 2024

There's no DMX library at the moment I'm afraid. There are some posts about it on the forum though - I think it'd be possible to get a transmitter going very easily with just a few lines of code. Receive could be a bit more tricky as you have to detect the start of frame - someone would have to try it and see.

from espruinodocs.

Jorgen-VikingGod avatar Jorgen-VikingGod commented on July 20, 2024

I currently working on a simple ArtNet Node based on ESP8266 + MAX485 chip. We have some lights at our hackerspace controlable via DMX, but still not enough cables (fucking expensive these cables).
So my idea is to build simple WiFi-ArtNet-Nodes (DMX over LAN = ArtNet)
I think it is really simple to build - you just need a couple of components; the ESP8266 WiFi SoC + MAX485 TTL chip, e.t.c.
Put everything into 3D printed case with antenna and connect DC power jack. Plugin into DMX device and wooohoo: control over air :D

There are a lot of arduino libraries out there doing this stuff.
Perhaps I will try to port this also to the Espruino.

from espruinodocs.

loop23 avatar loop23 commented on July 20, 2024

I did some preliminary work porting https://www.npmjs.com/package/osc and it's not looking too good; It runs out of memory when uploading. I removed all write functions, and at least it fits (but it's missing the DataView). I'll try and see if I find a polyfill of sorts.

from espruinodocs.

3pnk avatar 3pnk commented on July 20, 2024

Hey @loop23, I know it's been a while, but did you manage to get osc working on a Espruino device? And if not, what problem did you run into that halted your progress? Any luck on your end, @gfwilliams ?

from espruinodocs.

gfwilliams avatar gfwilliams commented on July 20, 2024

I haven't had time, however there is now DataView support in Espruino, which should make the porting process easier!

from espruinodocs.

loop23 avatar loop23 commented on July 20, 2024

No, sorry, i didn't have a chance to get back to it. Be sure to have more memory than standard espruino if you want to use both in and out at the same time.

from espruinodocs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.