Community
cancel
Showing results for 
Search instead for 
Did you mean: 
sI
New Contributor I
1,961 Views

how to write to groove lcd connected on i2c port of base sheild via sys entry or /dev ?

Hi all,

I have groove-LCD RGB Backlight connected to my galileo gen 2 board through i2c port of base shelid. I want to write data to lcd form my application through /sys or /dev entry. How to proceed about this.

Looking forward for reply.

Thanks in advance.

Regards,

Shreeharsha I

8 Replies
Diego_V_Intel
Employee
112 Views

Hello shreeharsha,

You would have to use i2c-tools. You can install it from the AlexT's repo: http://repo.opkg.net/galileo/ Index of /galileo. In the following site there are instructions about how to configure the repo in order to download packages from it: http://alextgalileo.altervista.org/package-repo-configuration-instructions.html Galileo Package Repo Configuration Instructions

Also, you might need to configure the pin multiplexing switches to select the i2c-0 device. In the following site you will find information about the pin muxing and a detailed table that you can use as a guide: http://www.emutexlabs.com/project/203-getting-started-with-intel-galileo-gen-2 EmutexLabs

Additionally, the following threads discuss the use of the Grove LCD with Galileo. You might find them useful for your application. The use of i2c-tools is mentioned there as well:

Regards,

Diego.

sI
New Contributor I
112 Views

Hi Diego,

Thank you very much for the reply.

Regards,

Shreeharsha I

sI
New Contributor I
112 Views

Hi Diego,

can u refer me any books or links to understand the Linux internals with practical exposure as am a newbie to embedded linux.

Looking forward for your reply

Regards,

Shreeharsha I

Diego_V_Intel
Employee
112 Views

Hello shreeharsha,

Since Linux (Yocto) is open source, you can find a lot of information of a huge quantity of topics. If you are just starting, the best option might be to check the Yocto Project documentation: https://www.yoctoproject.org/documentation https://www.yoctoproject.org/documentation

Regarding the Edison itself, you can check the following site where there is useful information like guides, projects and code samples: https://software.intel.com/en-us/iot/documentation?field_formfactor_tid=80494&value=80494 IoT - Documentation | Intel® Developer Zone

Regards,

Diego.

sI
New Contributor I
112 Views

Hi Diego,

Would u kindly explain me the GPIO configuration table provided at Emutex labs for IO19 as an example. Please explain what each column mean there. Specilaly last 5 columns.

Looking forward for your valuable reply.

Regards,

Shreeharsha I

sI
New Contributor I
112 Views

Hi Diego,

Would you kindly help me in understanding the GPIO configuration table with an example say for IO19. Specifically not able to understand last 5 columns of the table. Sorry for asking basic doubt.

Looking forward for your valuable reply ASAP.

Regards,

Shreeharsha I

Diego_V_Intel
Employee
112 Views

Hello shreeharsha,

The last 5 columns are the following:

  1. Level Shifter
  2. Pull-Up
  3. Pin Mux 1
  4. Pin Mux 2
  5. Interrupt Mode

The level shifter gpio defines the direction of the gpio, so it could be input or output. The pull-up gpio enables a 22k pull-up/pull-down resistor for the particular IO that you are configuring, the pin mux 1 and the pin mux 2 configure which function is selected (UART, GPIO, SPI, etc.) and the interruption mode is the type of interruption associate to the GPIO.

For example, in order to configure the IO19 as GPIO (gpio58), then you should configure the pin mux 1 (gpio60) and the pin mux 2 (gpio79) as HIGH. There is no level shifter gpio to be configured. In case you want to enable the 22k pull-up resistor, the gpio59 must be set to HIGH.

Regards,

Diego.

sI
New Contributor I
112 Views

Hi Diego,

Thanks a lot for your valuable information.

Regards,

Shreeharsha I

Reply