Hello! new on the forums :D
I have decided on doing the panels on the viggen. I have posted a more of a follow along topic on mudspike forums where i will update how it goes.
But right now i am a bit stuck. I want to save slots on my arduino and are using the analogread voltage thing quite alot.
but when i try to adapt my code for the Datapanel selector, I am abit over my head. I am unsure how/what paramaters i can put in the line:
sendDcsBiosMessage(“DATAPANEL_SELECTOR”, “0”)
My whole code:
With this code i am able to read the values of each state on each turn of the rotary switch but it does not seem to work with the senddcsmessage part.
Like i wrote in my mudspike topic:
"Now I am not so good at the coding part. I have borrowed all code and experimented with them and edited them to my liking. But this last part doesn’t work the rest does. If anyone sees something wrong I’d love to try and understand why it is wrong :) I dont know if it just is something with the sendDcsBiosMessage, that the msg is not correct or the arg. because i can not find any relatable topics that have any info, the closest is this one which say there are x amount of possible values to put out but on the viggen there should be 0-6 but maybe it is not the value which it should send?"
When i read on the dcs bios tutorial it says that the original code/snippet:
it says that pin_0-pin_6 is low because they should be connected to a ground pin. So i also tried send message with False after "x" in the code.
ps: sorry for the diffrent kind of fonts, not sure what happened there xD
Thanks in advance :)