Hier wird es sogar ohne Widerstand gemacht:
http://www.mikrocontroller.net/artic...ntroller_an.3F