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
robseee opened this Issue Mar 22, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@robseee

robseee commented Mar 22, 2015

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

This comment has been minimized.

Member

ivankravets commented Mar 22, 2015

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 from add supporto for Sanguino boards (atmega1284p) to 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