User avatar
Arjan
Posts: 265
Joined: Sat Sep 08, 2012 1:59 pm

RPi 3 : Act LED (working example)

Fri Mar 11, 2016 10:09 pm

Herewith a working example for controlling the Act LED from ARM side.

https://github.com/vanvught/rpidmx512/b ... pio_virt.c

Code: Select all

	bcm2837_gpio_virt_init();

	for(;;) {
		bcm2837_gpio_virt_led_set(0);
		udelay(500000);
		bcm2837_gpio_virt_led_set(1);
		udelay(500000);
	}
Arjan
http://www.raspberrypi-dmx.com/
http://www.raspberrypi-dmx.org/
Open Source DMX/RDM/MIDI/OSC/Art-Net/sACN solutions

faiz180490
Posts: 8
Joined: Sun Dec 11, 2016 11:51 am

Re: RPi 3 : Act LED (working example)

Sun Dec 11, 2016 4:09 pm

Updating the link as the above one seems to be broken:

https://github.com/vanvught/rpidmx512/b ... pio_virt.c

Return to “Bare metal, Assembly language”