Ctrldev

From ZynthianWiki
Jump to navigation Jump to search

1 How Do I start writing a ctrldev driver?

Well you first have to do a lot of the process that's described here, so a quick scan of the questions and have a look at any you don't understand. We assume you have Visual Studio Code (VSC) all set up and ready to rock and you have a debug-able zynthian attached and it runs...

1.1 Where do I put what files to make it work?

The ctrldev files are located in the directory /zynthian/zynthian-ui/zyngine/ctrldev in the zynthian repository zynthian-ui which is what you should have forked to get to this point. It is a simple task to copy one of the existing files rename it to something that suits what you are doing and away you go....

1.2 How do we know we are actively running our code....?

We set a breakpoint in the VSC source code listing.