In order to view Serial output (basically see whatever is printed by the device using Serial.print() or its variants), you can use the Serial Monitor built into the Arduino IDE.First connect the board to the Arduino IDE. This should show a new COM port in Tools -> PortIn case you see multiple Serial Ports, it will be a good idea to disconnect your board and see which port disappears. That way, you can identify the port corresponding to your board. Once you have selected the correct Port, click on Tools -> Serial Monitor or press Ctrl + Shift + M ... Read More
In order to download a new library, go to Tools -> Manage LibrariesSearch for the library of your interest in the window that opens up. Click on the desired library, and click Install.This will Install the library and you will be able to see the example specific to the library from File -> Examples.
To add a new board in Arduino IDE, go to Tools -> Board -> Boards ManagerIn the window that opens up, search for the board of your interest, click on that board, and click on the 'Install' button. You can even choose to install an earlier version of the board from the versions dropdown (1.1.6 in the image below).Some boards are not directly searchable in the Arduino Boards Manager. Popular examples are ESP32 and ESP8266. In order to install the ESP32 and ESP8266 board in Arduino, the following steps can work (other non-available boards may have similar steps).Step 1: Get ... Read More
Formatting the code is quite important to make it readable. It is recommended that you properly format the code regularly, and especially before sharing it with someone else.Follow these steps to auto-format code in Arduino IDE −Go to ToolsClick on Auto FormatAlternatively, you can press Ctrl+T on your keyboard. This will format the code and add the correct indentations wherever required.Before Auto-FormatAfter Auto-Format
In order to change the baud rate of the Serial Monitor, go to Tools -> Serial Monitor (or press Ctrl+Shift+M alternatively).Make sure you have a board connected to your PC/Laptop, or the Serial Monitor won't open. Also, make sure that the Port corresponds to the connected board.Once the Serial Monitor is open, you can see the baud rate dropdown at the bottom and select the required baud rate from there.
In this post, we will understand the difference between Applet and Application.ApplicationThey are similar to Java programs.They can be executed independently without using web browser.It requires a ’main’ function for it to be executed.Java applications have full access to local file system and network.They can access all kinds of resources that are available to the system.They can execute the programs with the help of the local system.An application program is required when a task needs to be directly performed for the user.AppletsThey are small Java programs.They have been designed to be included with HTML documents.They need Java enabled web browser ... Read More
Problem Statement: Use boto3 library in Python to get details of all classifiers present in AWS Glue Data catalog. For example, get the details of all classifier from user’s account.Approach/Algorithm to solve this problemStep 1 − Import boto3 and botocore exceptions to handle exceptions.Step 2 − There is no parameter.Step 3 − Create an AWS session using boto3 library. Make sure region_name is mentioned in default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4 − Create an AWS client for glue.Step 5 − Call get_classifiers.Step 6 − It will fetch details of ... Read More
Problem Statement − Use boto3 library in Python to check statuses of all runs of a given job.Example − Get the status of all runs of a glue job named as ‘run_s3_file_job’.Approach/Algorithm to solve this problemStep 1 − Import boto3 and botocore exceptions to handle exceptions.Step 2 − job_name is the mandatory parameters. The function will fetch the details of a given job_name.Step 3 − Create an AWS session using boto3 library. Make sure region_name is mentioned in default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4 − Create an AWS client ... Read More
In this post, we will understand the difference between Link and Association.LinkIt can be understood as the physical connection between objects.It helps tell about the relationship among objects.It is represented using line segment between objects.They can’t be referenced.It is used in UML designs.AssociationIt is a specification about the collection of links.The connections are related to classes.It is a general relationship between classes.They are implemented using programming languages as a reference model.It shows connections between classes using line segments.It is used in UML designs.
In this post, we will understand the difference between Friend function and Friend class.Friend FunctionIt is usually used with operator overloading operation.It is used with the ‘friend’ keyword.It helps give a non-member function the access to the private members of the class.It has to be declared before it is used.It is used to access private and protected members of the class.It can be a global function or a function in another class.Exampleclass Node { private: int val; Node* next; // Other members of Node Class // friend int LinkedList::search(); // Only search method ... Read More