Recent Posts

Pages: 1 ... 8 9 [10]
91
Forgot to ask: Does anything change if I'm supplying power via 8 AA batteries?  Actually, since I have a recharger, I'm probably going to switch to LiPo (3 cells / 11.1V).
92
Why do you need to use a timer to read humidity? Using millis() and reading the humidity at semi-regular intervals (+/- a few milliseconds) seems often enough for something that changes VERY slowly.
93
Displays / Re: Where can I buy a font chi...
Last post by ghlawrence2000 - Today at 01:28 am
If you are on the edge......... say approximately 52-55% of flash usage, and maybe 49-51% ram useage, then yep, I can confirm you are going to be getting random hangs and restarts........... If somebody can explain to me also why only half of the available resources can be used, I would love to know!

Regards,

Graham
94
Quote
getStrWidth does not seem to like variables
Is this a function or a class method? If it is a class method, where did you get the library? If it is a function, where did you get it?

Where is your code?

You can get the length of a string using strlen(). If the function takes something other than a string, we'll need to know a lot more about the function.
95
Code: [Select]
long x = 0;

Since you are altering that in an ISR, it should be declared volatile.

I tried your code with nothing on pin 3, and I got no output at all, which was pretty much what I expected (it hung in the ISR).

The only reason you got output at all was you must have been activating the interrupt quite slowly, giving it time to flush the serial buffer.
96
Microcontrollers / Re: STM32, Maple and Maple min...
Last post by oric_dan - Today at 01:24 am
Quote
I am trying to use the Adafruit libraries for ILI9340 and 9341, and besides the display not showing anything, I have seen that the sketch first reads and set some parameters in the display, and while those show up when using a Mega, they show either as FF or 00 when using the maple.
Victor, if you're seeing Serial output, but not any LCD display, when using the Mega, it may be because you need to have the Reset pin connected, as well as 3.3V to the Led pin. Neither appears to be necessary with the Adafruit ILI9341 "shield", but are with the [ebay] modules.

The Adafruit ILI9341 library h.w. constructor and example both default the Reset pin to -1, but you have to add it in in your sketches, eg.

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, 8 );
not
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

This is just to get the Rduino to work.
97
General Electronics / Re: Charging a 18650
Last post by Paul__B - Today at 01:23 am
... using the charger he already has.
98
I'm getting no response too from distribution...hmm...
99
Programming Questions / Re: Help with Code Conversion
Last post by PaulS - Today at 01:21 am
Quote
1. How do I implement the statements that begin with # in VB?
You don't. A #define statement is a preprocessor directive. VB doesn't have a preprocessor or a compiler.

100
General Discussion / Import arduino
Last post by pinktoadette3 - Today at 01:20 am
Looking to buy a quantity 500-1000 of arduino uno for our users. I contacted distribution but no one answered. I was wondering if the board is imported directly from Italy or do they have US base (I'm in the U.S.)? Or is there a wholeseller they work with like what raspberry pi does?
Pages: 1 ... 8 9 [10]

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy