Demo entry 6684303

dc

   

Submitted by anonymous on Dec 15, 2017 at 03:25
Language: C++. Code size: 263 Bytes.

if(Key2==1)
    {system("echo 1 > /sys/devices/platform/davinci_ctr.2/dc_motor/enable");
     system("echo 35 > /sys/devices/platform/davinci_ctr.2/dc_motor/duty_cycle");}
if(Key3==1)
    system("echo 0 > /sys/devices/platform/davinci_ctr.2/dc_motor/enable");

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).