{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/2739","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/2739/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/2739/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/2739/events","html_url":"https://github.com/arduino/Arduino/issues/2739","id":60243647,"number":2739,"title":"compiling error for ultrasonic sensorhc-sr04","user":{"login":"hannanrazvi","id":11372542,"avatar_url":"https://avatars.githubusercontent.com/u/11372542?v=3","gravatar_id":"","url":"https://api.github.com/users/hannanrazvi","html_url":"https://github.com/hannanrazvi","followers_url":"https://api.github.com/users/hannanrazvi/followers","following_url":"https://api.github.com/users/hannanrazvi/following{/other_user}","gists_url":"https://api.github.com/users/hannanrazvi/gists{/gist_id}","starred_url":"https://api.github.com/users/hannanrazvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannanrazvi/subscriptions","organizations_url":"https://api.github.com/users/hannanrazvi/orgs","repos_url":"https://api.github.com/users/hannanrazvi/repos","events_url":"https://api.github.com/users/hannanrazvi/events{/privacy}","received_events_url":"https://api.github.com/users/hannanrazvi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-08T06:22:40Z","updated_at":"2015-03-09T23:00:24Z","closed_at":"2015-03-09T23:00:24Z","body":"hey guys i have a udoo board and i am having a problem in comiling the code for the ultrasonic sensor hc-sr04 the error i am getting is -\r\n\r\n/home/ubuntu/Arduino/libraries/NewPing/NewPing.cpp: In constructor 'NewPing::NewPing(uint8_t, uint8_t, unsigned int)':\r\n/home/ubuntu/Arduino/libraries/NewPing/NewPing.cpp:21:17: error: cannot convert 'RwReg* {aka volatile long unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment\r\n  _triggerOutput = portOutputRegister(digitalPinToPort(trigger_pin)); // Get the output port register for the trigger pin.\r\n                 ^\r\n/home/ubuntu/Arduino/libraries/NewPing/NewPing.cpp:22:13: error: cannot convert 'RoReg* {aka volatile long unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment\r\n  _echoInput = portInputRegister(digitalPinToPort(echo_pin));         // Get the input port register for the echo pin.\r\n             ^\r\n/home/ubuntu/Arduino/libraries/NewPing/NewPing.cpp:24:75: error: 'portModeRegister' was not declared in this scope\r\n  _triggerMode = (uint8_t *) portModeRegister(digitalPinToPort(trigger_pin)); // Get the port mode register for the trigger pin.\r\n                                                                           ^\r\nError compiling.\r\n\r\n\r\nplease help me as this is my college project and im really running low on time"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/77963047","html_url":"https://github.com/arduino/Arduino/issues/2739#issuecomment-77963047","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/2739","id":77963047,"user":{"login":"cmaglie","id":423515,"avatar_url":"https://avatars.githubusercontent.com/u/423515?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaglie","html_url":"https://github.com/cmaglie","followers_url":"https://api.github.com/users/cmaglie/followers","following_url":"https://api.github.com/users/cmaglie/following{/other_user}","gists_url":"https://api.github.com/users/cmaglie/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaglie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaglie/subscriptions","organizations_url":"https://api.github.com/users/cmaglie/orgs","repos_url":"https://api.github.com/users/cmaglie/repos","events_url":"https://api.github.com/users/cmaglie/events{/privacy}","received_events_url":"https://api.github.com/users/cmaglie/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T23:00:24Z","updated_at":"2015-03-09T23:00:24Z","body":"This issue tracker is not intended for help on personal project, please ask on the forum:\r\n\r\nhttp://forum.arduino.cc\r\n\r\nor even better on the UDOO forum:\r\n\r\nhttp://www.udoo.org/forum/\r\n"}}