MUFF WIGGLER Forum Index
 FAQ & Terms of UseFAQ & Terms Of Use   Wiggler RadioMW Radio   Muff Wiggler TwitterTwitter   Support the site @ PatreonPatreon 
 SearchSearch   RegisterSign up   Log inLog in 
WIGGLING 'LITE' IN GUEST MODE

Reading A4 and A5 on the Expander
MUFF WIGGLER Forum Index -> SNAZZY FX  
Author Reading A4 and A5 on the Expander
Alwaysnew
I feel like I'm asking a lot of questions here, but...

How do I read the value from A4 and A5 on the expander?

I guess I was expecting "analogRead(4)" to work?

Thanks
scottwilson
try

analogRead(A4)

when you write the integer '4', you're reading pin 4, which may or may not coincide with the pin named "A4"

Arduino.h has constants for all of the pin names that points to the actual pin numbers.

s
Alwaysnew
seems like analogRead(4) was right after all but the knobs on the expander don't change the value. Seems like they are attenuators, no? The value could therefore be changed with input on the A4 input.
scottwilson
If there's no input on the A4 jack, then the pot should just change the values. You can run the AC01_Template program to see the values of each of the 4 inputs displayed.

I'm not sure what the behaviro is supposed to be with an input plugged in... it's either only the input _or_ it's the input value plus the jack value.

s
MUFF WIGGLER Forum Index -> SNAZZY FX  
Page 1 of 1
Powered by phpBB © phpBB Group