Blog
This is a private homepage... ;)
I love the Zsh prompt used in Gentoo! Here it is...
Since I am using the Zsh as default Shell on my Linux machines but not all of them are Gentoo based, I put the Gentoo prompt here.
Screenshot:
Just put the following lines to your .zshrc and you will be able to use this prompt on all distributions, not only Gentoo. Shure, I could copy the prompt file to the default directory in /usr/share/zsh/... but it is easier to just copy the .zshrc file from system to system...:
prompt_gentoo_setup () {prompt_gentoo_prompt=${1:-'blue'}prompt_gentoo_user=${2:-'green'}prompt_gentoo_root=${3:-'red'}if [ "$USER" = 'root' ]thenbase_prompt="%B%F{$prompt_gentoo_root}%m%k "elsebase_prompt="%B%F{$prompt_gentoo_user}%n@%m%k "fipost_prompt="%b%f%k"#setopt noxtrace localoptionspath_prompt="%B%F{$prompt_gentoo_prompt}%1~"PS1="$base_prompt$path_prompt %# $post_prompt"PS2="$base_prompt$path_prompt %_> $post_prompt"PS3="$base_prompt$path_prompt ?# $post_prompt"}prompt_gentoo_setup "$@"
Arduino Relays
Yesterday evening I have build a small relays for switching high voltage lines with my Arduino. It uses the "Blink" example and switches on for 10 seconds then switches off for 10 seconds. I have used this document to get my work done.
Arduino TSL230R
The next device is ready... ;) It is the TSL230R light sensor.
It prints out the Lux value every N seconds.
My code is based on this Blog post. You could buy the sensor at Sparkfun where you will find the Datasheet too. Another place for code is here. There is provided a modified version of the link above.
Arduino DS1621
My first Arduino device is born. Thanks to John! He learned me how to develop the driver for it. It is a DS1621 temperature sensor with 2-Wire (I²C) interface bus. And, YES! I have currently 17.5 degrees in my room.
I am impressed! The code will follow ASAP!
Hello world!
Welcome to my new Blog.
This is a new try to publish my daily thoughts... ;)







