mirror of
https://github.com/JasonYANG170/Flowerpot.git
synced 2024-11-23 20:16:38 +00:00
37 lines
53 KiB
XML
37 lines
53 KiB
XML
|
<VisualMicro>
|
|||
|
<Program Name="智能节水花盆" Ext=".ino" Location="C:\Users\qw200\Documents\C or C++ for YANG\智能节水花盆\智能节水花盆">
|
|||
|
<Compile ReCompileIfSourceIsNewer="1" IsDebugStart="1" IsGdb="0" IsCompiled="0" ConfigurationName="Debug" UseConfigurationNameInBuildFolder="True" StopOnError="False" OptimiseLibs="True" OptimiseCore="True" ExportWebDebugger="0" BuildPath="C:\Users\qw200\AppData\Local\Temp\VMBuilds\智能节水花盆\esp8266_nodemcuv2\Debug" IncludesDebug="0" SketchName="智能节水花盆" ReportDigitalPins="0" ReportAnalogPins="0" ReportI2C="0" ReportFreeMemory="0" IncludeDebug="1" LastDebugPreProcessorDefinitions="VM_DBT_HARDWARESERIAL 0;VM_DBT_SOFTWARESERIAL 1;VM_DBT_FASTSERIAL 2;VM_DBT_USB 3;VM_DBT_TEENSY 4;VM_DBT_UART 5;VM_DBT_USART 6;VM_DBT_USBSERIAL 7;VM_DBT_TTYUART 8;VM_DBT_NET_CONSOLE 9;VM_DBT_Uart 10;VM_DBT_COSA 11;VM_DBT_CDCSerialClass 12;VM_DBT_HARDWARESERIAL1 13;VM_DBT_HARDWARESERIAL2 14;VM_DBT_HARDWARESERIAL3 15;VM_DBT_NET_UDP 16;VM_DBT_USBAPI 17;VM_DBT_SERIALUSB 18;VM_DBT_MS430_SERIAL_ 19;VM_DBT_NO_SERIAL 20;VM_DBT_GENERIC_OBJECT 21;VM_DEBUG_ENABLE 1;VM_DEBUG;VM_DEBUG_BANDWIDTH_THROTTLE_MS 33;VM_DEBUGGER_SOFT_TRANSPORT Serial;VM_DEBUGGER_SOFT_TRANSPORT_WRITER Serial;VM_DBT VM_DBT_GENERIC_OBJECT;VM_DEBUG_BREAKPAUSE;" CompilerErrors="1" />
|
|||
|
<Platform Name="arduino20x" Package="esp8266" Platform="esp8266" Architecture="2.5.0-4-b40a506">
|
|||
|
<Board CoreFolder="C:\Users\qw200\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\cores\esp8266" VariantFullPath="C:\Users\qw200\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\variants\nodemcu" McuIdePath="c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\0axxbbxm.vxj\Micro Platforms\visualmicro\ide" McuSketchBookPath="C:\Users\qw200\Documents\Arduino" name="NodeMCU 1.0 (ESP-12E Module)" build.board="ESP8266_NODEMCU" build.variant="nodemcu" upload.tool="esptool" upload.maximum_data_size="81920" upload.wait_for_upload_port="true" upload.erase_cmd="" serial.disableDTR="true" serial.disableRTS="true" build.mcu="esp8266" build.core="esp8266" build.spiffs_pagesize="256" build.debug_port="" build.debug_level="" menu.xtal.80="80 MHz" menu.xtal.80.build.f_cpu="80000000L" menu.xtal.160="160 MHz" menu.xtal.160.build.f_cpu="160000000L" menu.vt.flash="Flash" menu.vt.flash.build.vtable_flags="-DVTABLES_IN_FLASH" menu.vt.heap="Heap" menu.vt.heap.build.vtable_flags="-DVTABLES_IN_DRAM" menu.vt.iram="IRAM" menu.vt.iram.build.vtable_flags="-DVTABLES_IN_IRAM" menu.exception.legacy="Legacy (new can return nullptr)" menu.exception.legacy.build.exception_flags="-fno-exceptions" menu.exception.legacy.build.stdcpp_lib="-lstdc++" menu.exception.disabled="Disabled (new can abort)" menu.exception.disabled.build.exception_flags="-fno-exceptions -DNEW_OOM_ABORT" menu.exception.disabled.build.stdcpp_lib="-lstdc++" menu.exception.enabled="Enabled" menu.exception.enabled.build.exception_flags="-fexceptions" menu.exception.enabled.build.stdcpp_lib="-lstdc++-exc" menu.ssl.all="All SSL ciphers (most compatible)" menu.ssl.all.build.sslflags="" menu.ssl.basic="Basic SSL ciphers (lower ROM use)" menu.ssl.basic.build.sslflags="-DBEARSSL_SSL_BASIC" upload.resetmethod="--before default_reset --after hard_reset" build.flash_mode="dio" build.flash_flags="-DFLASHMODE_DIO" build.flash_freq="40" menu.eesz.4M2M="4MB (FS:2MB OTA:~1019KB)" menu.eesz.4M2M.build.flash_size="4M" menu.eesz.4M2M.build.flash_size_bytes="0x400000" menu.eesz.4M2M.build.flash_ld="eagle.flash.4m2m.ld" menu.eesz.4M2M.build.spiffs_pagesize="256" menu.eesz.4M2M.upload.maximum_size="1044464" menu.eesz.4M2M.build.rfcal_addr="0x3FC000" menu.eesz.4M2M.build.spiffs_start="0x200000" menu.eesz.4M2M.build.spiffs_end="0x3FA000" menu.eesz.4M2M.build.spiffs_blocksize="8192" menu.eesz.4M3M="4MB (FS:3MB OTA:~512KB)" menu.eesz.4M3M.build.flash_size="4M" menu.eesz.4M3M.build.flash_size_bytes="0x400000" menu.eesz.4M3M.build.flash_ld="eagle.flash.4m3m.ld" menu.eesz.4M3M.build.spiffs_pagesize="256" menu.eesz.4M3M.upload.maximum_size="1044464" menu.eesz.4M3M.build.rfcal_addr="0x3FC000" menu.eesz.4M3M.build.spiffs_start="0x100000" menu.eesz.4M3M.build.spiffs_end="0x3FA000" menu.eesz.4M3M.build.spiffs_blocksize="8192" menu.eesz.4M1M="4MB (FS:1MB OTA:~1019KB)" menu.eesz.4M1M.build.flash_size="4M" menu.eesz.4M1M.build.flash_size_bytes="0x400000" menu.eesz.4M1M.build.flash_ld="eagle.flash.4m1m.ld" menu.eesz.4M1M.build.spiffs_pagesize="256" menu.eesz.4M1M.upload.maximum_size="1044464" menu.eesz.4M1M.build.rfcal_addr="0x3FC000" menu.eesz.4M1M.build.spiffs_start="0x300000" menu.eesz.4M1M.build.spiffs_end="0x3FA000" menu.eesz.4M1M.build.spiffs_blocksize="8192" menu.eesz.4M="4MB (FS:none OTA:~1019KB)" menu.eesz.4M.build.flash_size="4M" menu.eesz.4M.build.flash_size_bytes="0x400000" menu.eesz.4M.build.flash_ld="eagle.flash.4m.ld" menu.eesz.4M.build.spiffs_pagesize="256" menu.eesz.4M.upload.maximum_size="1044464" menu.eesz.4M.build.rfcal_addr="0x3FC000" menu.led.2="2" menu.led.2.build.led="-DLED_BUILTIN=2" menu.led.16="16" menu.led.16.build.led="-DLED_BUILTIN=16" menu.ip.lm2f="v2 Lower Memory" menu.ip.lm2f.build.lwip_include="lwip2/include" menu.ip.lm2f.build.lwip_lib="-llwip2-536-feat" menu.ip.lm2f.build.lwip_flags="-DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0" menu.ip.hb2f="v2 Higher Bandwidth" menu.ip.hb2f.build.lwip_include="lwip2/include" menu.ip.hb2f.build.lwip_lib="-llwip2-1460-feat" menu.ip.hb2f.build.lwip_flags="-DLWIP_OPEN_SRC -DTCP_M
|
|||
|
</Platform>
|
|||
|
<Debug DebugEnabled="1" EnableBreak="1" InBreakLiveView="1" PerfStats="1" IsGdb="0" RuntimeWriterMissingSetup="0" RuntimeWriterMissingLoop="0" RemotePortSpeedWrittenToDebugSource="9600" RuntimeWriterFoundSetupStart="1" RuntimeWriterFoundLoopStart="1" />
|
|||
|
<VCCodeModel>
|
|||
|
<VCCodeMacros />
|
|||
|
</VCCodeModel>
|
|||
|
<BreakPoints>
|
|||
|
<BreakPoint Index="1" Name="智能节水花盆.ino,行 111" Id="dfb89c7a-37d4-4c0d-8153-c5b8dbe20f64" Enabled="1" Message=" Millis is currently {millis()}.
 This tutorial debug trace point prints a message every 250ms
 The break point property called 'Continue Execution' controls if code should pause here and wait for you to click 'Continue'.
 To stop debug, click stop debugging or close/stop the serial monitor.
 When debug ends, serial debug will continue to break/pause the mcu or transmit trace message, wifi debug will not.
 This breakpoint exists at the start of the loop() function, where you see a red dot.
 The red dot is a ‘breakpoint’. Edit the properties of a breakpoint by right clicking it or open the 'Debug>Other Windows>Breakpoint List'
 This breakpoint is automatically set by Visual Micro to demonstrate the Arduino debugger.
 Add your own breakpoints by placing the cursor on any code line and pressing F9. Press F9 again to delete the breakpoint.
 Read more about the Visual Micro debugger at https://www.visualmicro.com/page/Debugging-for-Arduino.aspx
 Take some time to learn about debugging, it’s worth it!
 To switch the demo breakpoint and other tips off, deselect Visual Micro>General>Tutorial Mode.
 Switch debugging off by changing from tool bar (Configuratin) from 'Debug' to 'Release'" MessageTextType="0" PreProcessedMessage=" Millis is currently {0}.
 This tutorial debug trace point prints a message every 250ms
 The break point property called 'Continue Execution' controls if code should pause here and wait for you to click 'Continue'.
 To stop debug, click stop debugging or close/stop the serial monitor.
 When debug ends, serial debug will continue to break/pause the mcu or transmit trace message, wifi debug will not.
 This breakpoint exists at the start of the loop() function, where you see a red dot.
 The red dot is a ‘breakpoint’. Edit the properties of a breakpoint by right clicking it or open the 'Debug>Other Windows>Breakpoint List'
 This breakpoint is automatically set by Visual Micro to demonstrate the Arduino debugger.
 Add your own breakpoints by placing the cursor on any code line and pressing F9. Press F9 again to delete the breakpoint.
 Read more about the Visual Micro debugger at https://www.visualmicro.com/page/Debugging-for-Arduino.aspx
 Take some time to learn about debugging, it’s worth it!
 To switch the demo breakpoint and other tips off, deselect Visual Micro>General>Tutorial Mode.
 Switch debugging off by changing from tool bar (Configuratin) from 'Debug' to 'Release'" Condition="millis()>0 || millis()>1" ConditionType="1" CurrentHits="0" File="c:\users\qw200\documents\c or c++ for yang\智能节水花盆\智能节水花盆\智能节水花盆.ino" FileLine="111" FileColumn="1" FunctionName="" FunctionLineOffset="1" FunctionColumnOffset="1" HitCountTarget="250" HitCountType="4" Language="C++" LocationType="3" Tag="<vmbp Id='dfb89c7a-37d4-4c0d-8153-c5b8dbe20f64'/>" Type="1" ToString="System.__ComObject" BreakWhenHit="0">
|
|||
|
<Source>104
|
|||
|
105 display.println(" Wellcome To\n YANG\nIntelligent Flowerpot");
|
|||
|
106 display.display();
|
|||
|
107 delay(8000);
|
|||
|
108 // display.begin(SSD1306_SWITCHCAPVCC, 0x3c); //初始化OLED并设置其IIC地址为 0x3C
|
|||
|
109 }
|
|||
|
110
|
|||
|
-->111 void loop() {
|
|||
|
112 // delay(2000);
|
|||
|
113
|
|||
|
114 buttonState = digitalRead(buttonPin);
|
|||
|
115
|
|||
|
116 Serial.println(analogRead(14));//湿度传感器接ESP32上的GPIO号
|
|||
|
117 delay(100);
|
|||
|
118 if (buttonState == LOW) { // 判断是否按下开关
|
|||
|
119 display.clearDisplay(); //清屏
|
|||
|
120 delay(200);
|
|||
|
</Source>
|
|||
|
<MessageVariables>
|
|||
|
<MessageVariable Name="millis()" Index="1" />
|
|||
|
</MessageVariables>
|
|||
|
</BreakPoint>
|
|||
|
</BreakPoints>
|
|||
|
</Program>
|
|||
|
</VisualMicro>
|