On Github pedalpete / konscio-presentation
I threw up in my mouth a little bit when I saw this code.
To me, that is horrible code. Who here knows what this code does? Possible discussion... Right, you can't tell what it does, because you don't know what is on pin '0'. This is like a recipe saying 'move left hand up, then down' when it is trying to get you to slice a tomato.{"name":"descriptive_name", "abilities":[ {"type":"led","pin":16, "interface":"gpio","color":"red"}, {"type":"led","pin":15,"interface":"gpio","color":"green"}, {"type":"led","pin":18,"interface":"gpio","color":"blue"}, {"type":"temperature","pin":"28-000004acb882", "interface":"w1"}]}
This is all made possible by a simple configuration file on the hardware which holds the details of the structure of that hardware. Here we have everything we need to know about the device so that the software layer can interface with the devices capabilities. That can be sensors, servos, motors, etc. etc.pete@kitchon.com
I'm still very early in the development of this framework, and I suspect I'll be open-sourcing it not too far down the road. I'm really keen to hear your feedback and questions, not sure if we have time for questions now, but please seek me out afterward or e-mail me. I've never worked on an open-source framework before, so if anybody has any advice and recommendations on managing an open-source project, I'd be really keen to hear from you. Thanks again for your time.