Author Topic: Moteino (Mega), OLED and u8g  (Read 2087 times)

gregcope

  • Full Member
  • ***
  • Posts: 174
  • Country: gb
Moteino (Mega), OLED and u8g
« 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.

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Moteino (Mega), OLED and u8g
« Reply #1 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 that would be pins 16 & 17.
VCC can be supplied from the "3.3v" pin since the OLED only needs up to 10-15mA.

gregcope

  • Full Member
  • ***
  • Posts: 174
  • Country: gb
Re: Moteino (Mega), OLED and u8g
« Reply #2 on: June 01, 2015, 02:33:49 PM »
Thanks Felix exactly what I was looking for!