Page 1 of 1

Problems with

Posted: Mon Mar 06, 2017 3:02 pm
by ddt154
Problems with code. I followed the instructions, downloaded the HVRescue_Shield212_sketch and compiled it in Arduino IDE v1.8.1 and received the following warnings:

------------------
C:\Users\Admin\Desktop\HVRescue_Shield212\HVRescue_Shield212.pde: In function 'void setup()':
C:\Users\Admin\Desktop\HVRescue_Shield212\HVRescue_Shield212.pde:202:19: warning: converting to non-pointer type 'byte {aka unsigned char}' from NULL [-Wconversion-null]

byte response = NULL; // user response from mode query
^
C:\Users\Admin\Desktop\HVRescue_Shield212\HVRescue_Shield212.pde:241:23: warning: NULL used in arithmetic [-Wpointer-arith]

while(response == NULL) {

^
C:\Users\Admin\Desktop\HVRescue_Shield212\HVRescue_Shield212.pde:258:18: warning: converting to non-pointer type 'byte {aka unsigned char}' from NULL [-Wconversion-null]

response = NULL; // reset response so we go thru the while loop again.

------------------

*I uploaded it to my UNO R3 and via serial monitor @9600 Baud.. I got..

------------------
┬Želect mode:
1: ATmega (28-pin)
2: ATtiny2313
3: ATtiny (8-pin) / HVSP
------------------

So I type in a 1 and hit Enter and nothing happens.

Any help would be appreciated.

Re: Problems with

Posted: Mon Mar 06, 2017 3:10 pm
by mightyohm
I will check this out and get back to you.

Re: Problems with

Posted: Mon Mar 06, 2017 11:07 pm
by mightyohm
I just tested this with Arduino 1.8.1. The warnings are not an issue.
The sketch seems to be working fine.
Make sure the AVR is not plugged into the socket when you start the sketch, otherwise you will see the issue you are describing.