first semester files
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"ProjectMap": {
|
||||
"c5f80730-f44f-4478-bdae-6634efc2ca88": {
|
||||
"ProjectGuid": "c5f80730-f44f-4478-bdae-6634efc2ca88",
|
||||
"DisplayName": "ECE101 Helping the Blind See Project",
|
||||
"ColorIndex": 0
|
||||
}
|
||||
},
|
||||
"NextColorIndex": 1
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.31912.275
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ECE101 Helping the Blind See Project", "ECE101 Helping the Blind See Project\ECE101 Helping the Blind See Project.vcxproj", "{C5F80730-F44F-4478-BDAE-6634EFC2CA88}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Debug|x86.Build.0 = Debug|Win32
|
||||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Release|x86.ActiveCfg = Release|Win32
|
||||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {056B1C91-378D-4F40-A3B7-871090B468D4}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,39 @@
|
||||
/*H
|
||||
Name: ECE101_Helping_the_Blind_See_Project.ino
|
||||
Created: 12/10/2021 4:46:02 PM
|
||||
Author: Aidan
|
||||
*/
|
||||
|
||||
#include <Ultrasonic.h>
|
||||
|
||||
Ultrasonic ultrasonic(6);
|
||||
// the setup function runs once when you press reset or power the board
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
}
|
||||
|
||||
// the loop function runs over and over again until power down or reset
|
||||
void loop()
|
||||
{
|
||||
long RangeInInches;
|
||||
long RangeInCentimeters;
|
||||
|
||||
Serial.println("The distance to obstacles in front is: ");
|
||||
RangeInInches = ultrasonic.MeasureInInches();
|
||||
Serial.print(RangeInInches); //0-157 inches
|
||||
Serial.println("inch");
|
||||
delay(250);
|
||||
|
||||
RangeInCentimeters = ultrasonic.MeasureInCentimeters(); //two measurements should keep an interval
|
||||
Serial.print(RangeInCentimeters); //0-400 cm
|
||||
Serial.println("cm");
|
||||
delay(250);
|
||||
|
||||
if (RangeInInches > 6) {
|
||||
digitalWrite(LED_BUILTIN, HIGH); //turn LED on
|
||||
delay(100);
|
||||
digitalWrite(LED_BUILTIN, LOW); //turn LED off
|
||||
delay(500);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Misc Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>xml;json;txt;rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="ECE101 Helping the Blind See Project.ino" />
|
||||
<None Include="src\arduino folders read me.txt">
|
||||
<Filter>Misc Files</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="__vm\.ECE101 Helping the Blind See Project.vsarduino.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
</Project>
|
||||
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
Editor: https://www.visualmicro.com/
|
||||
This file is for intellisense purpose only.
|
||||
Visual micro (and the arduino ide) ignore this code during compilation. This code is automatically maintained by visualmicro, manual changes to this file will be overwritten
|
||||
The contents of the _vm sub folder can be deleted prior to publishing a project
|
||||
All non-arduino files created by visual micro and all visual studio project or solution files can be freely deleted and are not required to compile a sketch (do not delete your own code!).
|
||||
Note: debugger breakpoints are stored in '.sln' or '.asln' files, knowledge of last uploaded breakpoints is stored in the upload.vmps.xml file. Both files are required to continue a previous debug session without needing to compile and upload again
|
||||
|
||||
Hardware: Arduino Nano RP2040 Connect, Platform=mbed_nano, Package=arduino
|
||||
*/
|
||||
|
||||
#if defined(_VMICRO_INTELLISENSE)
|
||||
|
||||
#ifndef _VSARDUINO_H_
|
||||
#define _VSARDUINO_H_
|
||||
#define _VMDEBUG 1
|
||||
#define ARDUINO_ARCH_RP2040
|
||||
#define ARDUINO 108015
|
||||
#define ARDUINO_NANO_RP2040_CONNECT
|
||||
#define ARDUINO_ARCH_MBED_NANO
|
||||
#define ARDUINO_ARCH_MBED
|
||||
#define ARDUINO_LIBRARY_DISCOVERY_PHASE 0
|
||||
#define __cplusplus 201103L
|
||||
#define __GNUC__ 7
|
||||
#define _Pragma(x)
|
||||
#define __ARMCC_VERSION 6010050
|
||||
|
||||
#define __PTRDIFF_TYPE__ int
|
||||
#define __ARM__
|
||||
//#define __arm__ 1
|
||||
#define always_inline
|
||||
#define __inline__
|
||||
#define __asm__(x)
|
||||
#define __attribute__(x)
|
||||
#define __extension__
|
||||
#define __ATTR_PURE__
|
||||
#define __ATTR_CONST__
|
||||
#define __inline__
|
||||
#define __volatile__
|
||||
#define _Pragma(x)
|
||||
#define __ASM
|
||||
#define __INLINE
|
||||
|
||||
#define __INT32_TYPE__ long int
|
||||
#define __INTMAX_MAX__ 0x7fffffffffffffffLL
|
||||
#define STM32H747xx 1
|
||||
#define CORE_CM7
|
||||
#define __INTPTR_TYPE__ int
|
||||
#define __SIZE_TYPE__ unsigned int
|
||||
|
||||
|
||||
#define __ARM_COMPAT_H
|
||||
#undef __cplusplus
|
||||
#define __cplusplus 201103L
|
||||
#define __cplusplus__ 1
|
||||
#define DOXYGEN_ONLY 1
|
||||
|
||||
typedef void* common_type_t;
|
||||
typedef int PinName;
|
||||
#define PinName int
|
||||
typedef int PinMode;
|
||||
#define PinMode int
|
||||
#define _GLIBCXX_CSTRING 1
|
||||
#define _BASIC_IOS_H 1
|
||||
#define __COMPAT_H__ 1
|
||||
//#define _STDLIB_H_ 1
|
||||
typedef void* __builtin_va_list;
|
||||
|
||||
#include "arduino.h"
|
||||
#include <mbed_config.h>
|
||||
#include <nina_pins.h>
|
||||
#include <pinmode_arduino.h>
|
||||
#include <pins_arduino.h>
|
||||
#include <double_tap_usb_boot.cpp>
|
||||
#include <nina_pins.cpp>
|
||||
#include <variant.cpp>
|
||||
#undef INPUT
|
||||
#define INPUT 0x0
|
||||
#undef OUTPUT
|
||||
#define OUTPUT 0x1
|
||||
#undef LOW
|
||||
#define LOW 0u
|
||||
#undef HIGH
|
||||
#define HIGH 1u
|
||||
|
||||
// Additions to override the introduced code from overrides.h which confuses intellisense
|
||||
#undef _GLIBCXX_DEFAULT_ABI_TAG
|
||||
#define _GLIBCXX_DEFAULT_ABI_TAG
|
||||
#undef _GLIBCXX_HOSTED
|
||||
#define _GLIBCXX_HOSTED 0
|
||||
|
||||
void pinMode(int pinNumber, int pinMode);
|
||||
void pinMode(int pinNumber, int pinMode) {}
|
||||
void digitalWrite(unsigned int pinNumber, PinStatus status);
|
||||
void digitalWrite(unsigned int pinNumber, PinStatus status) {}
|
||||
void digitalWrite(unsigned int pinNumber, unsigned int status);
|
||||
void digitalWrite(unsigned int pinNumber, unsigned int status) {}
|
||||
PinStatus digitalRead(unsigned int pinNumber);
|
||||
PinStatus digitalRead(unsigned int pinNumber) {}
|
||||
int analogRead(int pinNumber);
|
||||
int analogRead(int pinNumber) {}
|
||||
void analogWrite(int pinNumber, int value) {}
|
||||
unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout) {}
|
||||
unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout) {}
|
||||
void shiftOut(int dataPin, int clockPin, BitOrder bitOrder, uint8_t val) {}
|
||||
uint8_t shiftIn(int dataPin, int clockPin, BitOrder bitOrder) {}
|
||||
void attachInterrupt(int interruptNumber, voidFuncPtr callback, PinStatus mode) {}
|
||||
void attachInterruptParam(int interruptNumber, voidFuncPtrParam callback, PinStatus mode, void* param) {}
|
||||
void detachInterrupt(int interruptNumber) {}
|
||||
|
||||
#include "ECE101 Helping the Blind See Project.ino"
|
||||
#endif
|
||||
#endif
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,14 @@
|
||||
#####################################################
|
||||
Arduino How To: Use sub folders for source code
|
||||
http://www.visualmicro.com/
|
||||
#####################################################
|
||||
|
||||
* .INO code can exist in the project folder and '\src' folder.
|
||||
* .Cpp/.c/.S/.h etc. can exist in the project folder, the '\src' folder and in any folder(s) below the '\src' folder.
|
||||
* .Cpp/.c/.S/.h sources in shared code projects should follow the same folder rules (because they are merged with the project sources into a temporary build folder prior to compile).
|
||||
|
||||
* Use the 'Show All Files' icon above the 'Solution Explorer' to switch between 'included project files' and 'physical files/folders'.
|
||||
* Source code in the project folder will always be compiled regardless of inclusion in the project. This functionality can be disabled in Global Options.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user