Compile Firmware_for_MegaPiPro.ino with Audrino IDE Failed


#1

I buy a new megapi pro board.

1.Open Audrino IDE
2.Open Firmware_for_MegaPiPro.ino file.
3.Compile and Upload this file.
4.Then the error came out:
‘Serial3’ was not declared in this scope

I need to remove all the code which contain ‘Serial3’ and ‘Serial2’, then I could compile and upload sucessed.

Why? Thank you.


#2

Hi kingrocky,

Does the compile work without uploading the firmware to MegaPi pro?
image

Here we tested both compiling and uploading, it works perfectly. If still the error message, you may try the Arduino 1.6.5.


#3

3ks,I choose wrong board type when compile and upload to megapi pro.


#4

I have got the error Firmware_for_MegaPi.ino:30:22: fatal error: MeMegaPi.h: No such file or directory
compilation terminated.
I am running this firmware on raspberry Pi. same code is running on windows but not running on Raspberry PI 3.


#5

Hi prasantprabhakar,

The firmware is for megapi, it can be uploaded to megapi board via the Arduino software. What do you mean by running it on raspberry pi?


#6

I am uploading on megapi board via Arduino software but OS is raspberry pi. My arduino software is running on raspbeery pi OS


#7

Raspbian OS


#8

On Raspbian OS, We can’t tell if it work, but you may try the arduino 1.6.5.


#9

I am also trying to run python program on MegaPi . I am following this url


but i am getting this error

from megapi import*
Traceback (most recent call last):
File “<pyshell#1>”, line 1, in
from megapi import*
ImportError: No module named ‘megapi’


#10