LowPowerLab Forum

Hardware support => MoteinoMEGA => Topic started by: gregcope on June 01, 2015, 12:22:34 PM

Title: Moteino (Mega), OLED and u8g
Post by: gregcope on June 01, 2015, 12:22:34 PM
Hi All,

What PINs does the OLED screen use?

Can it use arbitrary pins or does it need the Hardware Interrupts or Hardware Serial pins?

Ie - if I only have a few digital pins, can it just use those or does it need special ones?

This would be on a Moteino Mega using Radio and Flash - ie something that already has many pins committed.  My project already uses both Hardware Serial ports as well.

Sorry - I cannot seem to find anything online that describes concisely.
Title: Re: Moteino (Mega), OLED and u8g
Post by: Felix on June 01, 2015, 12:27:27 PM
Are you referring to the OLED that was part of the MotionMote kit?
That has 4 pins: GND, Vcc, SCL SDA. So it uses the I2C pins on the MEGA.
If you check the MEGA pinout (https://lowpowerlab.com/moteino/#pinoutMEGA) that would be pins 16 & 17.
VCC can be supplied from the "3.3v" pin since the OLED only needs up to 10-15mA.
Title: Re: Moteino (Mega), OLED and u8g
Post by: gregcope on June 01, 2015, 02:33:49 PM
Thanks Felix exactly what I was looking for!