ADC commands in python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • herlpitt
    New Member
    • Jun 2007
    • 1

    #1

    ADC commands in python

    Hi,

    I am using GM 862.I am trying to write a script in python for adc and i m trying to use it's function by showing a blinking LED.I can't find any adc commands in the maual and online.Was wondering if anyone can assist me,I'll really appreciate that.

    Thanks!
  • fredniggle
    New Member
    • Jan 2008
    • 12

    #2
    Originally posted by herlpitt
    Hi,

    I am using GM 862.I am trying to write a script in python for adc and i m trying to use it's function by showing a blinking LED.I can't find any adc commands in the maual and online.Was wondering if anyone can assist me,I'll really appreciate that.

    Thanks!
    Hello,

    try:
    [code]
    MDM.send('AT#GP IO=3,1,1\n',0) #turn gpio 3 high
    ab= MDM.receive(5)
    MOD.sleep(10) wait a second
    MDM.send('AT#GP IO=3,0,1\n',0) # turn gpio 3 low
    ab= MDM.receive(5)

    Please let me know if you require more help

    Fred.

    Comment

    Working...