lesthegrngo Posted May 2, 2020 Posted May 2, 2020 For all you Arduino buffs out there, I need some help. I want to use the integer output from DCS as the pointer to an array, however I need to reference the newValue DCS output in the array callout string as you can see here unsigned char* aBitmaps[] = { c24_0, c24_1, c24_2, c24_3, c24_4, c24_5, c24_6, c24_7, c24_8, c24_9, c24_10, c24_11, c24_12, c24_13, c24_14, c24_15, c24_16, c24_17, c24_18, c24_19}; ; unsigned char* bitmap = aBitmaps[newValue]; However for some reason the newValue number is not being recognised and so no callout is made. If I replace the DSC newValue command with unsigned int = X it works If you guys can take a look and see if there is something obvious I'd appreciate it! Cheers Les
Recommended Posts