Go to advanced search

by bobdee
Sun Feb 22, 2015 2:02 pm
Forum: General discussion
Topic: Composite monitor - switching off and on
Replies: 2
Views: 591

Re: Composite monitor - switching off and on

Ah, that did it. I had spent ages wading through pages offering advice before asking, but failed to find that. Obviously used the wrong search terms. Many thanks.
by bobdee
Sun Feb 22, 2015 12:10 pm
Forum: General discussion
Topic: Composite monitor - switching off and on
Replies: 2
Views: 591

Composite monitor - switching off and on

My (headless) Pi has a tiny 5" composite monitor, just for checking status. Config.txt includes: sdtv_mode=2 sdtv_aspect=1 but I want the monitor mostly OFF, and I can turn it off perfectly with: /opt/vc/bin/tvservice -o BUT although /opt/vc/bin/tvservice -c "PAL 4:3" ...turns the screen lights back...
by bobdee
Thu Feb 19, 2015 7:28 am
Forum: Python
Topic: RPi-GPIO - gpio_function()
Replies: 9
Views: 2242

Re: RPi-GPIO - gpio_function()

All very helpful, thanks.

Is there a way of identifying the current setting of a pin set to Write mode? In other words, if I've got a pin set ON, lighting up a led, can I discover that from a script?
by bobdee
Sat Apr 13, 2013 12:00 am
Forum: Other programming languages
Topic: Lazarus, GPIO and 1-wire
Replies: 10
Views: 5770

Re: Lazarus, GPIO and 1-wire

Well, for the record, below is my very rough bash script that: shows one temperature probe; switches on/off up to 7 relay circuits in a hard-coded sequence (using Gordon Henderson's WiringPi pin addresses); and provides a neat colour-coded status display on the terminal. #!/bin/bash NONE='\033[00m' ...
by bobdee
Mon Apr 08, 2013 11:05 am
Forum: Other programming languages
Topic: Lazarus, GPIO and 1-wire
Replies: 10
Views: 5770

Re: Lazarus, GPIO and 1-wire

OK, let me lay out where I am. Or at least where the plan says I am... I'm installing a heating system, controlled by the Pi. I have DS18B20 temperature sensors connected to the Pi's GPIO4 (WiringPi 7). That pin is hardwired for the DS18B20, but you can daisy chain several (they are each addressable...
by bobdee
Mon Apr 08, 2013 8:24 am
Forum: Other programming languages
Topic: Lazarus, GPIO and 1-wire
Replies: 10
Views: 5770

Re: Lazarus, GPIO and 1-wire

I haven't actually done this yet, but if you're getting a bandwagon going I'd like to join it. I've got a prototype heating controller working well via a bash script, but now want to make it a bit more grown up by porting it to FP. (And I mean FP, not Lazarus; it won't need any window-based front en...

Go to advanced search