Hello everyone,
Let me begin by saying that i:
- am a complete beginner at programming and the entire duino familiy.
- and i am not a native engish speaker, so i am sorry for any inconsistancies.
- am not new to electronics, that is why i want to start with some more versatile sollutions as well.
i aquired several adafruit i2c matrix display's
http://learn.adafrui.../1-2-8x8-matrix
http://www.adafruit....051#Description
and am trying to make a driver that works with it, and failling horribly at it
i made this as simple as possible just to try and see if i can get the display to light up.
it doesnt work.
using System;using System.Net;using System.Net.Sockets;using System.Threading;using Microsoft.SPOT;using Microsoft.SPOT.Hardware;using SecretLabs.NETMF.Hardware;using SecretLabs.NETMF.Hardware.Netduino;namespace I2C_matrix_display_test{ public class Program { public static void Main() { var MatrixDisplay1 = new I2CDevice(new I2CDevice.Configuration(0x70,100)); byte Oscillator = 0x21; // turn on oscillator byte SetDisplay = 0x81; //enable display, no blink byte SetBrightness = 0xEF; //Full brightness byte Address = 0x00; // first write adress byte WriteData = 0xFF; // Display data byte[] EnableOscillator = { Oscillator }; byte[] EnableDisplay = { SetDisplay }; byte[] Brightness = { SetBrightness }; byte[] WriteToFirstAddress = { Address }; byte[] WriteToDisplay = { WriteData }; I2CDevice.I2CTransaction[] ActionWrite = new I2CDevice.I2CTransaction[] { I2CDevice.CreateWriteTransaction(EnableOscillator), I2CDevice.CreateWriteTransaction(EnableDisplay), I2CDevice.CreateWriteTransaction(Brightness), I2CDevice.CreateWriteTransaction(WriteToFirstAddress), I2CDevice.CreateWriteTransaction(WriteToDisplay), I2CDevice.CreateWriteTransaction(WriteToDisplay), I2CDevice.CreateWriteTransaction(WriteToDisplay), I2CDevice.CreateWriteTransaction(WriteToDisplay), I2CDevice.CreateWriteTransaction(WriteToDisplay), I2CDevice.CreateWriteTransaction(WriteToDisplay), I2CDevice.CreateWriteTransaction(WriteToDisplay), I2CDevice.CreateWriteTransaction(WriteToDisplay), }; MatrixDisplay1.Execute(ActionWrite, 1000); } }}
according to the origina C++ source
https://github.com/a...ackpack-Library
i should in the following steps get something
- enable oscillator
- enable display
- set brightness
- point to the write address
- fill with data
can someone point me in the right direction where to look next ? because im not very famlilar with c++ code as well
or if someone knows of a pre existing driver (i searched but found nothing).
extra info:
[*]i have a netduino plus 2 with the latest firmware update
[*]the board seems to have internal pull ups,
[*]i have connected it directly to the sc and sd pins.
[/list]
Thank you for any help you might be able to offer.
Kind regards,