Snippet - FEZ Cerberus and N18 Display Library

I just posted FEZ Cerberus and N18 Display Library on Codeshare. Feel free to discuss and make suggestions here.

2 Likes

Hi,

How can I change this lines to MF4.3?

if (Util.SetSpecialDisplayConfig(this.config, Util.BPP_Type.BPP16_BGR_BE, (int)value, this.rs.Id))
this.currentOrientation = value;
else
throw new ArgumentException();

Thank you.

@ candelo - https://www.ghielectronics.com/docs/34/graphics#3271 should help you.

Thank you, but if I use only:

OutputPort RESET_PIN;
            OutputPort BACKLIGTH_PIN;

            RESET_PIN = new OutputPort(GHI.Pins.Generic.GetPin('A', 8), false);
            BACKLIGTH_PIN = new OutputPort(GHI.Pins.Generic.GetPin('A', 13), true);


            Display.Type = Display.DisplayType.Spi;
            Display.Width = 160;
            Display.Height = 128;
            Display.SpiConfiguration = new SPI.Configuration(GHI.Pins.Generic.GetPin('A', 4), true, 0, 0, true, true, 8000, SPI.SPI_module.SPI1);
            Display.ControlPin = GHI.Pins.Generic.GetPin('C', 3);
            Display.Bpp = Bitmaps.BitsPerPixel.BPP16_BGR_BE;
            Display.Save();

            //Thread.Sleep(50);
            var lcd = new Bitmap((int)Display.Width, (int)Display.Height);
            lcd.DrawEllipse(GT.Color.Blue, 10, 10, 10, 10);
            lcd.Flush();

my N18 only turn on the backlight.

What I need to do?

Thank you.

given your other post about Cerb40, this is the best code to use as the Cerb40 isn’t a true Gadgeteer board. I’d check your wiring since that’s the likely problem you have.