Click here to Skip to main content
15,885,757 members
Articles / Programming Languages / VC++
Tip/Trick

RaspberryPi2 and Wiring Library

Rate me:
Please Sign up or sign in to vote.
3.40/5 (3 votes)
11 Sep 2015CPOL1 min read 9.2K   3  
First samples in VisualGDB for Raspberry pi2

Introduction

There is my way of getting by about the dim explanation contained in point 2 of http://visualgdb.com/tutorials/raspberry/wiringPi/: Use the root account as the user account, as only root has direct access to hardware resources. If you don’t know the root password, login as the normal user, run ‘sudo su’ and then ‘passwd’ from the su shell to set it.

Background

You will need to have some knowledge of electronics and programming.

Using the Code

Download the source code.

I've checked Run debugger as root with sudo... then the program goes on Raspberry and the led flashes.

Image 1

I've installed WinSCP on laptop and it's very useful as it exempts me from learning and using command line. The only thing: when inside a directory, push Refresh button or the directory may seem empty and it's not true. I transferred LinuxProject4 from Raspberry to ASUS, to upload then into this tip. I am still not able to run LinuxProject4 from WinSCP: sudo su... I'll look on the internet, but it's a minor issue now. Below, there is also shown the wiring library, set up in Raspberry.

Image 2

LinuxProject4 runs from PuTTY sudo su.

Image 3

A snapshot.

Image 4

History

  • 11th September, 2015: Initial version

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --