tvalentius / as3glue

Automatically exported from code.google.com/p/as3glue
0 stars 0 forks source link

Arduino Mega 2560 Pin Above 13 no response #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Arduino Mega 2560 Pin Above 13 no response.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Arduino Mega 2560, Windows 7 x64 Ultimate

Please provide any additional information below.

I studied AS3Glue and I am trying to connect Arduino Mega 2560 with flash and 
successful. 
Analog Pin success, PWM output 2-13 success.

but I had a problem with the above digital pin 13 (22-53), using 
arduino.writeDigitalPin (22, Arduino.HIGH) no response. 

and it difficult to developt function because very little documentation on its 
website firmata.org 

Thanks in advance.

Sorry for my bad english.

attachment function

        / / FIRMATA2.0 change: have to send a PORT-specific message 
                public function writeDigitalPin (pin: int, mode: int): void 
                { 
                        if (mode == 1) 
                        { 
                                / / Set the bit 
                                _digitalPins | = (mode <<pin); 
                        } 
                        else if (mode == 0) 
                        { 
                                / / Clear the bit 
                                _digitalPins & = ~ (1 <<pin); 
                        } 
                        if (pin <= 7) 
                        { 
                                writeByte (ARD_DIGITAL_MESSAGE + 0); / / PORT0 
                                writeByte (_digitalPins% 128); / / Tx pins 0-6 
                                writeByte ((_digitalPins>> 7) & 1); / / Tx pin 7 
                        } 
                        else 
                        { 
                                writeByte (ARD_DIGITAL_MESSAGE + 1); / / port1 
                                writeByte (_digitalPins>> 8); / / Tx pins 8 .. 13 
                                writeByte (0); 
                        } 
                        flush (); 
                } 

Original issue reported on code.google.com by moch.eff...@gmail.com on 30 Sep 2011 at 6:05

GoogleCodeExporter commented 9 years ago
I'm having the same issue. Is there a solution to this problem or where can i 
find documentation to try to fix this myself.

I suspect it's just a matter of initiating and enabling the other pins in the 
as3glue library. Is this correct?

Original comment by DenApo...@gmail.com on 11 Oct 2011 at 7:37

GoogleCodeExporter commented 9 years ago
Was there any solution to this?

Original comment by hudre...@gmail.com on 22 Nov 2011 at 7:57

GoogleCodeExporter commented 9 years ago
already fix : download version 2.0

Original comment by moch.eff...@gmail.com on 26 Nov 2011 at 6:01