We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c2_dotmatrix [2016/03/14 14:56]
ck.kim [How to use SPI on ODROID-C2]
en:c2_dotmatrix [2016/03/14 15:22] (current)
odroid [How to use SPI on ODROID-C2]
Line 5: Line 5:
 <​WRAP ​ left round important 100%> <​WRAP ​ left round important 100%>
 Since the C2 doesn'​t support Hardware SPI. This Example is using the GPIO-based bitbanging SPI Master.\\ Since the C2 doesn'​t support Hardware SPI. This Example is using the GPIO-based bitbanging SPI Master.\\
-In this case, the maximum clock is about 350KHz.+In this case, the maximum clock is about 390KHz.\\ 
 + 
 +Update the Kernel first. This module drivers are available on 3.14.29-32 or higher.\\
 </​WRAP>​\\ </​WRAP>​\\
  
Line 30: Line 32:
 ==== Compile & run SPI test example source code ==== ==== Compile & run SPI test example source code ====
 <​code>​ <​code>​
-$ gcc -o dot_test dot_test.c+odroid@odroid64:​~$ gcc -o dot_test dot_test.c
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-odroid@odroid:~$ sudo ./dot_test+odroid@odroid64:~$ sudo ./dot_test
 spi mode: 0 spi mode: 0
 bits per word: 8 bits per word: 8
 max speed: 500000 Hz (500 KHz) max speed: 500000 Hz (500 KHz)
 </​code>​ </​code>​
 +
 +<​WRAP ​ left round important 100%>
 +Set to 500 KHz, but it is actually operating at 390KHz.
 +</​WRAP>​\\
  
 <file c dot_test.c>​ <file c dot_test.c>​
Line 204: Line 210:
  
 <​code>​ <​code>​
-$ gcc -o dot_shift_test dot_shift_test.c+odroid@odroid64:​~$ gcc -o dot_shift_test dot_shift_test.c
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-odroid@odroid:~$ sudo ./​dot_shift_test+odroid@odroid64:~$ sudo ./​dot_shift_test
 max speed: 1000000 Hz (1000 KHz) max speed: 1000000 Hz (1000 KHz)
 </​code>​ </​code>​
en/c2_dotmatrix.1457936807.txt.gz · Last modified: 2016/03/14 14:56 by ck.kim
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0