Code Generation
Up to Requirements & Wishlist
Hi
This maybe outside the scope of fritzing 1.0, but fritzing 2.0?
When parts are placed & connected to Arduino would it be possible to auto generate the code for simple things like a switch or LED. The code could be part of the part description XML with a variable for pin number determined by placement & variable/value for user application*. More complex parts like multiplexers, shift registers, serial LCD etc, might be included by taking advantage of the arduino library system.
* Once some of the circuit / code exists there would be a need for an application to tie the auto generated code together, so i thought of the visual programing apps like pd or arduinoBlocks where you connect objects / code together, so. fritzing could have an area where the variables & the components are presented visually, (using the existing component images) the user could then create / add variables to store toggle states, ints & floats, or add for loops, timers, code!, etc, then simply join them together.
Lee
Hi Lee,
that's another grand idea! Grand indeed, and more towards Fritzing 3.0. 
However, it's often possible to find simple and pragmatic ways to provide such advanced concepts in the short term. We are in fact thinking about extending the part description to include some intelligence (about the hardware and the software). This could then be used inside Fritzing to provide usage hints.
Additionally, we want to provide a way to tie the microcontroller code to the Fritzing sketch. The first step here will be a web gallery where you can paste the code together with the other files.
So if you have any ideas about how to turn these suggestions into something that is easier to implement, please let us know!
andré>
