Railjim
Posts: 1
Joined: Sat Sep 19, 2015 1:14 pm

Gertbot DCC in python

Sat Sep 19, 2015 1:31 pm

Hi everyone

I'm quite new to programming, so far only doing things like making led's flash etc. I have got the DCC demo working but I want to write a program to make trains move when certain conditions are met and struggling to see how to do this especially when I'm not finding much info of use on google. Can anyone help me?

heuristicjohn
Posts: 39
Joined: Thu Jan 31, 2013 11:55 pm

Re: Gertbot DCC in python

Wed Oct 07, 2015 9:55 am

You have probably worked this out by now, but if not I would recommend downloading gertbot.py and test_drivers.py from the gertbot web site. The former contains all the driver routines you need, and the latter demonstrates how to use them. This approach worked for me.

Return to “HATs and other add-ons”