{"action":"opened","issue":{"url":"https://api.github.com/repos/dparson55/NRFLite/issues/9","repository_url":"https://api.github.com/repos/dparson55/NRFLite","labels_url":"https://api.github.com/repos/dparson55/NRFLite/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/dparson55/NRFLite/issues/9/comments","events_url":"https://api.github.com/repos/dparson55/NRFLite/issues/9/events","html_url":"https://github.com/dparson55/NRFLite/issues/9","id":293642990,"number":9,"title":"Error compiling with esp8266 module in Arduino","user":{"login":"rajendrant","id":9190931,"avatar_url":"https://avatars2.githubusercontent.com/u/9190931?v=4","gravatar_id":"","url":"https://api.github.com/users/rajendrant","html_url":"https://github.com/rajendrant","followers_url":"https://api.github.com/users/rajendrant/followers","following_url":"https://api.github.com/users/rajendrant/following{/other_user}","gists_url":"https://api.github.com/users/rajendrant/gists{/gist_id}","starred_url":"https://api.github.com/users/rajendrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajendrant/subscriptions","organizations_url":"https://api.github.com/users/rajendrant/orgs","repos_url":"https://api.github.com/users/rajendrant/repos","events_url":"https://api.github.com/users/rajendrant/events{/privacy}","received_events_url":"https://api.github.com/users/rajendrant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-01T18:51:13Z","updated_at":"2018-02-01T18:51:13Z","closed_at":null,"author_association":"NONE","body":"Error is in NRFLite::initTwoPin().\r\nI am not using two pin mode.\r\nSo I commented them out, and it works fine otherwise.\r\nWould be great if the compilation error is fixed.\r\n\r\nArduino: 1.8.5 (Linux), Board: \"Adafruit HUZZAH ESP8266, 80 MHz, 4M (3M SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200\"\r\n\r\nWARNING: library NRFLite claims to run on (avr) architecture(s) and may be incompatible with your current board which runs on (esp8266) architecture(s).\r\n/root/Arduino/libraries/NRFLite/src/NRFLite.cpp: In member function 'uint8_t NRFLite::initTwoPin(uint8_t, uint8_t, uint8_t, NRFLite::Bitrates, uint8_t)':\r\n/root/Arduino/libraries/NRFLite/src/NRFLite.cpp:63:16: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment\r\n     _momi_PORT = portOutputRegister(digitalPinToPort(momiPin));\r\n                ^\r\n/root/Arduino/libraries/NRFLite/src/NRFLite.cpp:64:15: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment\r\n     _momi_DDR = portModeRegister(digitalPinToPort(momiPin));\r\n               ^\r\n/root/Arduino/libraries/NRFLite/src/NRFLite.cpp:65:15: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment\r\n     _momi_PIN = portInputRegister(digitalPinToPort(momiPin));\r\n               ^\r\n/root/Arduino/libraries/NRFLite/src/NRFLite.cpp:67:15: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment\r\n     _sck_PORT = portOutputRegister(digitalPinToPort(sckPin));\r\n               ^\r\nexit status 1\r\nError compiling for board Adafruit HUZZAH ESP8266.\r\n\r\nThis report would have more information with\r\n\"Show verbose output during compilation\"\r\noption enabled in File -> Preferences.\r\n"}}
{"actor":{"display_login":"rajendrant"}}