Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Sanguino boards (atmega1284p) #131

Closed
roberto-sebastiano opened this issue Mar 22, 2015 · 1 comment · Fixed by #135
Closed

Add support for Sanguino boards (atmega1284p) #131

roberto-sebastiano opened this issue Mar 22, 2015 · 1 comment · Fixed by #135

Comments

@roberto-sebastiano
Copy link

Please add support for Sanguino boards (used in 3d printers)
Pins definitions seems wrong with platformio.

Arduino board definition is here:
https://github.com/MarlinFirmware/Marlin/tree/Development/ArduinoAddons/Arduino_1.5.x/hardware/marlin/avr

I successfully compiled and uploaded to this board with platformio using command "platformio init --board=1284p16m" and adding upload_speed = 57600 to platformio.ini, but looks like that pins definitions are wrong.

I can't get proper values (like those returned when compiling and uploading with arduino) for this program:
void setup() {
Serial.begin(9600);
pinMode(17, INPUT);
}

void loop()
{
myread = analogRead(17);
Serial.println(myread);
}

It should return pin 17 analog read (buttons attached to it), instead I get a fixed value coming from nowhere.

Thank you

@ivankravets
Copy link
Member

but looks like that pins definitions are wrong.

This is obvious behaviour, because the "PINs MAP" of 1284p16m isn't equal to Sanguino board. We will add support for this board.

@ivankravets ivankravets changed the title add supporto for Sanguino boards (atmega1284p) Add support for Sanguino boards (atmega1284p) Mar 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants