N newbie Member Licensed User Longtime User Jun 16, 2017 #1 Hi, i am using the example with an Arduino DUE when i define in the sample code a array of pins like Code: Private leds(40) As Pin and init this array in the AppStart like Code: For i= 0 To 40 leds(i).Initialize(i,leds(i).mode_output) leds(i).DigitalWrite(True) Next then i have two problems: 1) no data was send with the stream !!! init up to 15 ports it works correctly I have try to increase the StackBufferSize without success 2) the logging dont work any suggestions ????
Hi, i am using the example with an Arduino DUE when i define in the sample code a array of pins like Code: Private leds(40) As Pin and init this array in the AppStart like Code: For i= 0 To 40 leds(i).Initialize(i,leds(i).mode_output) leds(i).DigitalWrite(True) Next then i have two problems: 1) no data was send with the stream !!! init up to 15 ports it works correctly I have try to increase the StackBufferSize without success 2) the logging dont work any suggestions ????
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2017 #2 Does the Bluetooth example as-is work? Upvote 0
N newbie Member Licensed User Longtime User Jun 19, 2017 #3 Erel said: Does the Bluetooth example as-is work? Click to expand... Hi Erel, Yes, the example as-is works. (on the Android side i have sometimes connection-problems: i open a new trade for this in the B4A-Forum) On this morning i have try something and locate the cause The problem is when i init Digital-Pin 0 and 1 When i don' use this pins all works fine. Upvote 0
Erel said: Does the Bluetooth example as-is work? Click to expand... Hi Erel, Yes, the example as-is works. (on the Android side i have sometimes connection-problems: i open a new trade for this in the B4A-Forum) On this morning i have try something and locate the cause The problem is when i init Digital-Pin 0 and 1 When i don' use this pins all works fine.
Erel B4X founder Staff member Licensed User Longtime User Jun 19, 2017 #4 Some pins are used for all kinds of things. For example pins 0 and 1 are used by the default Serial object. This means that if you write to those pins then the serial output will be broken. Also make sure not to use the pins that are used by the Bluetooth module. Upvote 0
Some pins are used for all kinds of things. For example pins 0 and 1 are used by the default Serial object. This means that if you write to those pins then the serial output will be broken. Also make sure not to use the pins that are used by the Bluetooth module.
N newbie Member Licensed User Longtime User Jun 19, 2017 #5 Erel said: Some pins are used for all kinds of things. For example pins 0 and 1 are used by the default Serial object. This means that if you write to those pins then the serial output will be broken. Also make sure not to use the pins that are used by the Bluetooth module. Click to expand... In this case the pins 0 and 1 was not used by Bluetooth module or other ! Upvote 0
Erel said: Some pins are used for all kinds of things. For example pins 0 and 1 are used by the default Serial object. This means that if you write to those pins then the serial output will be broken. Also make sure not to use the pins that are used by the Bluetooth module. Click to expand... In this case the pins 0 and 1 was not used by Bluetooth module or other !