Temperature vs Colour mapping:0 Celsius R-0 G-0 B-25521.25 Celsius R-0 G-255 B-25542.5 Celsius R-0 G-255 B-063.75 Celsius R-255 G-255 B-085 Celsius R-255 G-0 B-0
Temperature vs Colour mapping:0 Celsius R-0 G-0 B-25521.25 Celsius R-0 G-255 B-25542.5 Celsius R-0 G-255 B-063.75 Celsius R-255 G-255 B-085 Celsius R-255 G-0 B-0
sudo nano /etc/network/interfaces
iface eth0 inet static
address 192.168.137.184
netmask 255.255.255.0
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = raspnas server
netbios name = raspnas
dns proxy = no
### Logging
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
### Authentication
security = user
map to guest = pi
#======================= Sharered Folders =======================
[media]
path = /mnt/myHardDrive
guest ok = yes
guest account = ftp
browseable = yes
read only = no
create mask = 0777
directory mask = 0777
writeable = yes
admin users = everyone
#==========================================================
A few weeks ago I got a TI LaunchPad. With the help of a few tutorials I managed to get the basic input, output and UART working. As most of the examples that I could find are for CCS, I decided to go that route instead of IAR.
First you have to install a few programs with apt-get.
$sudo apt-get install binutils-msp430
$sudo apt-get install gcc-msp430
$sudo apt-get install msp430mcu
$sudo apt-get install mspdebug
$sudo apt-get install msp430-libc
You might have to run
$sudo apt-get update
before installing the modules.
Next run mspdebug to make sure that there are no errors. If there are no errors type exit to close the debugger.
$sudo mspdebug rf2500
Now that you have everything installed, we need to create the program. I use nano text editor to write my program.
$sudo nano button_ISR.c
This program uses the two LED’s and one push button on the LaunchPad. When the button is pressed, an interrupt is generated and then the LED’s are toggled.
Close nano saving the changes.
The program then needs to be compiled.
$sudo msp430-gcc -mmcu=msp430g2553 -g -o BUTTON_ISR button_ISR.c
The program should compile without any errors and now you are able to run the debugger.
$sudo mspdebug rf2500
Now program the device
prog BUTTON_ISR
and run the program
run
CTRL+c will stop the program running and exit will close the debugger.
In the next post I will show you how to communicate between the TI LaunchPad and Raspberry Pi via hardware UART and the USB connection.
Greg