{"action":"created","issue":{"url":"https://api.github.com/repos/dcs-bios/dcs-bios/issues/89","repository_url":"https://api.github.com/repos/dcs-bios/dcs-bios","labels_url":"https://api.github.com/repos/dcs-bios/dcs-bios/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/dcs-bios/dcs-bios/issues/89/comments","events_url":"https://api.github.com/repos/dcs-bios/dcs-bios/issues/89/events","html_url":"https://github.com/dcs-bios/dcs-bios/issues/89","id":152194340,"number":89,"title":"Potentiometer use causing DCS BIOS to crash","user":{"login":"amyandpeteb","id":18746995,"avatar_url":"https://avatars.githubusercontent.com/u/18746995?v=3","gravatar_id":"","url":"https://api.github.com/users/amyandpeteb","html_url":"https://github.com/amyandpeteb","followers_url":"https://api.github.com/users/amyandpeteb/followers","following_url":"https://api.github.com/users/amyandpeteb/following{/other_user}","gists_url":"https://api.github.com/users/amyandpeteb/gists{/gist_id}","starred_url":"https://api.github.com/users/amyandpeteb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyandpeteb/subscriptions","organizations_url":"https://api.github.com/users/amyandpeteb/orgs","repos_url":"https://api.github.com/users/amyandpeteb/repos","events_url":"https://api.github.com/users/amyandpeteb/events{/privacy}","received_events_url":"https://api.github.com/users/amyandpeteb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-01T11:15:22Z","updated_at":"2016-05-04T01:05:14Z","closed_at":"2016-05-04T01:05:14Z","body":"I use the potentiometer in DCS BIOS but after adjusting it a few times, it crashes DCS BIOS. Any suggestions?"},"comment":{"url":"https://api.github.com/repos/dcs-bios/dcs-bios/issues/comments/216713510","html_url":"https://github.com/dcs-bios/dcs-bios/issues/89#issuecomment-216713510","issue_url":"https://api.github.com/repos/dcs-bios/dcs-bios/issues/89","id":216713510,"user":{"login":"amyandpeteb","id":18746995,"avatar_url":"https://avatars.githubusercontent.com/u/18746995?v=3","gravatar_id":"","url":"https://api.github.com/users/amyandpeteb","html_url":"https://github.com/amyandpeteb","followers_url":"https://api.github.com/users/amyandpeteb/followers","following_url":"https://api.github.com/users/amyandpeteb/following{/other_user}","gists_url":"https://api.github.com/users/amyandpeteb/gists{/gist_id}","starred_url":"https://api.github.com/users/amyandpeteb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyandpeteb/subscriptions","organizations_url":"https://api.github.com/users/amyandpeteb/orgs","repos_url":"https://api.github.com/users/amyandpeteb/repos","events_url":"https://api.github.com/users/amyandpeteb/events{/privacy}","received_events_url":"https://api.github.com/users/amyandpeteb/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T01:05:14Z","updated_at":"2016-05-04T01:05:14Z","body":"Thanks for the response.\r\n\r\nThe circuit matches the one in the DCS BIOS demo.  I can get it to work just fine and it reads out on the MS-DOS (command prompt) screen without any problem.  When playing the game, it will turn the knob I have it assigned to once or twice when I turn it, but after that it stops responding.  When I go back to the Command Prompt screen, it shows a bunch of characters, slashes, etc.  Would it be easier if I try to copy it into the screen?\r\n\r\nHere is the sketch.  I am using the latest build (0.5.0 of DCS Bios and version 0.2.3 of the library.\r\n\r\n#define DCSBIOS_DEFAULT_SERIAL\r\n#include \"DcsBios.h\"\r\n\r\n\r\n/* Set Master Arm switch to Pin 0 and 1 */\r\nDcsBios::Switch3Pos ahcpMasterArm(\"AHCP_MASTER_ARM\", 0, 1);\r\n\r\n/* Set GunPac Arm switch to Pin 2 and 3 */\r\nDcsBios::Switch3Pos ahcpGunpac(\"AHCP_GUNPAC\", 2, 3);\r\n\r\n/* Set Laser Arm switch to Pin 4 and 5 */\r\nDcsBios::Switch3Pos ahcpLaserArm(\"AHCP_LASER_ARM\", 4, 5);\r\n\r\n/* Set TGP switch to Pin 6 */\r\nDcsBios::Switch2Pos ahcpTgp(\"AHCP_TGP\", 6);\r\n\r\n/* Set CICU switch to Pin 7 */\r\nDcsBios::Switch2Pos ahcpCicu(\"AHCP_CICU\", 7);\r\n\r\n/* Set CICU switch to Pin 8 */\r\nDcsBios::Switch2Pos ahcpJtrs(\"AHCP_JTRS\", 8);\r\n\r\n/* Set IFFCC switch to Pin 9 and 10 */\r\nDcsBios::Switch3Pos ahcpIffcc(\"AHCP_IFFCC\", 9, 10);\r\n\r\n/* Set Autopilot mode switch to Pin 11 and 12 */\r\nDcsBios::Switch3Pos lasteApMode(\"LASTE_AP_MODE\", 11, 12);\r\n\r\n/* Set Autopilot engage / disengage switch to Pin 13 */\r\nDcsBios::Switch2Pos lasteApToggle(\"LASTE_AP_TOGGLE\", 13);\r\n\r\n/*this is a test...I'm having problems with the potentiometer and I want to check it out with the ILS volume A0*/\r\nDcsBios::Potentiometer ilsVol(\"ILS_VOL\", A0);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nvoid setup()\r\n{\r\n  DcsBios::setup();\r\n\r\n}\r\n\r\nvoid loop()\r\n{\r\n  DcsBios::loop();\r\n\r\n}\r\n"}}