Go to advanced search

by abhi143
Wed Dec 11, 2019 9:56 am
Forum: C/C++
Topic: Simple example of class and object
Replies: 27
Views: 748

Re: Simple example of class and object

To me you are the one going in circles, so lets just define it as like circle (a pun) from rst that is an entire general O/S for the Pi in C++ https://github.com/rsta2/circle I take it that is the sort of thing he is trying to do. What he is asking is how should he start out with the class and inhe...
by abhi143
Mon Dec 09, 2019 9:28 am
Forum: C/C++
Topic: Simple example of class and object
Replies: 27
Views: 748

Re: Simple example of class and object

Your question does not make much sense. Or is very vague anyway. I am agree lthere is no much difference between general c++ programming and Embedded c++ programming. only difference is that we use general c++ programming to write program for PC for example MFC on windows. we use embedded c++ progr...
by abhi143
Mon Dec 09, 2019 3:22 am
Forum: C/C++
Topic: Simple example of class and object
Replies: 27
Views: 748

Re: Simple example of class and object

abhi143, . All in all I would suggest learning more about C++ and object oriented programming before you start worrying about classes in embedded programming. Thanks to all of you for excellent advice's @Heater I am totally agree with you. I am not very good at c++ programming but I am practicing o...
by abhi143
Sun Dec 08, 2019 3:12 am
Forum: C/C++
Topic: Simple example of class and object
Replies: 27
Views: 748

Simple example of class and object

I understand what is a class and object I am looking simple example of class and object in c++ for electronics project Class is a blueprint for an object. Classes describe the type of objects. The object can be of different types: A class can have both data members and functions members associated w...
by abhi143
Tue Aug 14, 2018 3:43 pm
Forum: C/C++
Topic: Web interfacing with CGI script /C++
Replies: 7
Views: 1509

Re: Web interfacing with CGI script /C++

This very well written tutorial on doing CGI with C++ tells you everything you need to know: https://www.tutorialspoint.com/cplusplus/cpp_web_programming.htm Or perhaps this: http://www.yolinux.com/TUTORIALS/LinuxTutorialC++CGI.html If you google around for "web programming C++" and such like you w...
by abhi143
Mon Aug 13, 2018 2:02 pm
Forum: C/C++
Topic: Web interfacing with CGI script /C++
Replies: 7
Views: 1509

Re: Web interfacing with CGI script /C++

I have written html and c++ program but I don't understand how to mix html button code and c++ code.

Can anyone help me how to make complete program
by abhi143
Fri Aug 10, 2018 1:37 am
Forum: C/C++
Topic: Web interfacing with CGI script /C++
Replies: 7
Views: 1509

Re: Web interfacing with CGI script /C++

This problem solved, your program will run in an endless loop and the browser will wait for a response. Maybe you get a timeout error after a few minutes. I removed forever loop so when button click, led would flash only one time #include <iostream> using namspace std; #include <wiringPi.h> int mai...
by abhi143
Thu Aug 09, 2018 12:04 pm
Forum: C/C++
Topic: Web interfacing with CGI script /C++
Replies: 7
Views: 1509

Web interfacing with CGI script /C++

I am trying to access gpio of raspberry Pi via web interface. When button pressed on web page, Led would be flash This is simple CGI script . I tested it works sudo nano /usr/lib/cgi-bin/test.cgi #!/bin/sh echo "Content-type:text/html\n" echo '<!DOCTYPE html>' echo '<html>' echo ' <body>' echo 'Hell...
by abhi143
Thu Jun 14, 2018 3:40 am
Forum: Windows 10 for IoT
Topic: windows 10 iot failed to write provisioning file to the microsd card
Replies: 0
Views: 1297

windows 10 iot failed to write provisioning file to the microsd card

I installed window 10 core IoT dashboard on my windows 10 Lap topAnd I wanted to install windows 10 iot core on Raspberry Pi3. The problem I encounter is that when writing the image to the sd card, I simply get an error "Failed to write provisioning file to the microsd card" I did the google search ...
by abhi143
Sun Jun 10, 2018 6:51 am
Forum: C/C++
Topic: Raspberry with C++ program
Replies: 17
Views: 8533

Re: Raspberry with C++ program

However, if you are serious about learning programming in C++ do not start with I/O hardware interfacing. Also using "commands" is not C++ programming. Find IDE of some substance and "write " simple "hello word" in C++. If your really want to "blink LED" - there are many copies of "GPIO" "library" ...
by abhi143
Thu Jun 07, 2018 5:47 pm
Forum: C/C++
Topic: Raspberry with C++ program
Replies: 17
Views: 8533

Re: Raspberry with C++ program

I just want to know how do we program with c++ language. Well if you are certain you need the power of C++ (and can cope with its hideous complexity), then its easy as there is a C++ compiler included in Raspbian. Raspbian is the official OS for the Pi. The most commonly used languages are Python o...
by abhi143
Thu Jun 07, 2018 1:28 pm
Forum: C/C++
Topic: Raspberry with C++ program
Replies: 17
Views: 8533

Re: Raspberry with C++ program

Just for interest, why do you need C++ for that instead of C? I think there is big difference in C and C++ language. C is structural language where as C++ is object oriented language. I have read the forum post. Most of people suggest to learn c++ for Raspberry Pi. Just for my interest I want to wr...
by abhi143
Thu Jun 07, 2018 7:56 am
Forum: C/C++
Topic: Raspberry with C++ program
Replies: 17
Views: 8533

Re: Raspberry with C++ program

PeterO wrote:
Thu Jun 07, 2018 6:12 am
http://wiringpi.com/examples/blink/
I understand we can use any library to access GPIO pin of Hardware. The program is in c language in your link. I am looking for c++ language so that I can write program for LED , switch , motor and .so on
by abhi143
Thu Jun 07, 2018 3:50 am
Forum: C/C++
Topic: Raspberry with C++ program
Replies: 17
Views: 8533

Raspberry with C++ program

Hello Forum! I bought the Raspberry Pi 3 because I love the Raspberry Pi very much.I have to make Project with C++ language. I installed Raspbian on my Pi. I want to control my Pi in C++ language. I tried to run C++ Program and I can run c++ example program on Raspberry Pi. For Example : - g++ -o pr...
by abhi143
Thu May 31, 2018 3:07 pm
Forum: Windows 10 for IoT
Topic: Headless windows 10 iot core installation problem
Replies: 21
Views: 4345

Re: Headless windows 10 iot core installation problem

Posting link again: https://docs.microsoft.com/en-us/windows/iot-core/learn-about-hardware/headlessmode I followed this link https://docs.microsoft.com/en-us/windows/iot-core/connect-your-device/SSH I started Putty and entered my Raspberry IP Address. It prompted me login. I typed "Administrator" a...
by abhi143
Thu May 31, 2018 6:27 am
Forum: Windows 10 for IoT
Topic: Headless windows 10 iot core installation problem
Replies: 21
Views: 4345

Re: Headless windows 10 iot core installation problem

fruitoftheloom wrote:
Thu May 31, 2018 6:00 am
Is it possible, can I do that ?
Did I not provide a link for Headless ????
[/quote]

Okay I am following the this link to test [*]https://www.c-sharpcorner.com/article/led-on-and-off/

How to ensure that Pi is connected remotely to laptop ?
by abhi143
Thu May 31, 2018 2:21 am
Forum: Windows 10 for IoT
Topic: Headless windows 10 iot core installation problem
Replies: 21
Views: 4345

Re: Headless windows 10 iot core installation problem

if windows 10 iot core is installed on raspberry Pi3 and Pi3 is not connected with display. Is it possible to control led connected to Pi. I am thinking to write C# code on visual studio in laptop. then I have to connect pi remotely to my laptop. I will deploy code on Pi remotely using my laptop. I ...
by abhi143
Wed May 30, 2018 2:45 pm
Forum: Windows 10 for IoT
Topic: Headless windows 10 iot core installation problem
Replies: 21
Views: 4345

Re: Headless windows 10 iot core installation problem

Win10IoT runs a rudimentary website on port 80. I don't know how much control it gives you as I've never looked. DVI monitors and a HDMI to DVI cables are not expensive. You may find a usable monitor at a thrift shop or on Freecycle. A HDMi to VGA Cable will NOT work, you need a convertor like: htt...
by abhi143
Wed May 30, 2018 2:42 pm
Forum: Windows 10 for IoT
Topic: Headless windows 10 iot core installation problem
Replies: 21
Views: 4345

Re: Headless windows 10 iot core installation problem

Just for diagnostic and troubleshooting purposes I would suggest going back to a standard installation of Raspbian Stretch and get your display connected and configured under that accessible and configurable scenario first, and then use the experience gained to reuse the same display with the less ...
by abhi143
Wed May 30, 2018 1:23 pm
Forum: Windows 10 for IoT
Topic: Headless windows 10 iot core installation problem
Replies: 21
Views: 4345

Re: Headless windows 10 iot core installation problem

Is there any option to control remotely without buying new monitor ? Win10IoT runs a rudimentary website on port 80. I don't know how much control it gives you as I've never looked. DVI monitors and a HDMI to DVI cables are not expensive. You may find a usable monitor at a thrift shop or on Freecyc...
by abhi143
Wed May 30, 2018 9:50 am
Forum: Windows 10 for IoT
Topic: Headless windows 10 iot core installation problem
Replies: 21
Views: 4345

Re: Headless windows 10 iot core installation problem

You'll need your Raspberry connected to a TV or HDMI/DVI monitor. You CAN NOT connect your Raspberry HDMI to your laptop, that does NOT work. feeling very sad because I don't have Desktop HDMI/DVI monitor and TV monitor. That's the reason I am trying to setup headless Pi. I thought I did setup head...
by abhi143
Wed May 30, 2018 9:05 am
Forum: Windows 10 for IoT
Topic: Headless windows 10 iot core installation problem
Replies: 21
Views: 4345

Re: Headless windows 10 iot core installation problem

https://docs.microsoft.com/en-gb/windows/iot-core/tutorials/quickstarter/devicesetup Fundamentals are additionally a Windows 10 Desktop Machine and Visual Studio 2017..... I have loaded windows 10 iot core into SD card and I have connected the card into raspberry Pi without display. I want to use m...
by abhi143
Wed May 30, 2018 5:00 am
Forum: Windows 10 for IoT
Topic: Headless windows 10 iot core installation problem
Replies: 21
Views: 4345

Re: Headless windows 10 iot core installation problem

DougieLawson wrote:
Wed May 30, 2018 4:43 am
If it is a Raspberry Pi 3B+ you'll need the beta version of Win10IoT.
I have raspberry Pi 3 Model B v1.2, I have flashed windows 10 iot core into SD card with dashboard. How to get laptop screen to setup windows 10 iot core on Raspberry Pi 3
by abhi143
Wed May 30, 2018 3:29 am
Forum: Windows 10 for IoT
Topic: Headless windows 10 iot core installation problem
Replies: 21
Views: 4345

Headless windows 10 iot core installation problem

I have been successfully installed headless rasbain on Pi3. I am trying to install Headless windows 10 iot core on raspberry Pi3. I have laptop installing windows 10.

How to install Headless windows 10 iot core on raspberry Pi3?
by abhi143
Mon Jan 15, 2018 3:03 pm
Forum: Java
Topic: Blinking LED on Raspberry Pi using Java
Replies: 7
Views: 3074

Re: Blinking LED on Raspberry Pi using Java

Take a look at /opt/pi4j/examples/build which shows you how to build a pi4j Java program. javac -classpath .:classes:/opt/pi4j/lib/'*' -d . /home/pi/java/pi4jprogram.java Then you run it with WIRINGPI_GPIOMEM=1 java -classpath /opt/pi4j/lib/pi4j-core.jar:. pi4jprogram What is meaning of this error ...

Go to advanced search