Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bdring/arduino-esp32
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: espressif/arduino-esp32
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Apr 3, 2018

  1. Fix Bluetooth Serial

    me-no-dev committed Apr 3, 2018
    Copy the full SHA
    25dff4f View commit details

Commits on Apr 6, 2018

  1. fixes espressif#1249 (espressif#1269)

    tablatronix authored and me-no-dev committed Apr 6, 2018
    Copy the full SHA
    f6a4b02 View commit details
  2. Copy the full SHA
    c01e556 View commit details
  3. currently, when M5Stack board is selected (espressif#1242)

    M5Stack variant (pins_arduino.h) file is not automatically included,
    because boards.txt m5stack-core-esp32.build.variant=esp32
    This commit changes m5stack-core-esp32.build.variant from esp32 to m5stack_core_esp32
    also rename M5Stack variant directory from m5stack-core-esp32 to m5stack_core_esp32
    reaper7 authored and me-no-dev committed Apr 6, 2018
    Copy the full SHA
    5abe49e View commit details
  4. Preserver custom pin assigments (espressif#1239)

    This code allows Wire.begin() to assign the default values of SDA, and SCL only if they have not been previously configured.  Arduino libraries that use Wire() usually re-init the I2C interface in their initialization code with a call to Wire.begin().  If a user app sets custom pins assignment in setup(); These assignments will be overwritten with the default values  whenever Wire.begin() is called.
    stickbreaker authored and me-no-dev committed Apr 6, 2018
    Copy the full SHA
    7998e23 View commit details
  5. Copy the full SHA
    149190f View commit details
  6. HardwareSerial - availableForWrite() support (espressif#1226)

    * HardwareSerial - availableForWrite() support
    
    * fix indentation errors (tab vs space)
    mtabu authored and me-no-dev committed Apr 6, 2018
    Copy the full SHA
    aa1288a View commit details
  7. Add Core Debug Level for WeMosBat (espressif#1222)

    Should we add this declaration option for all boards?
    stickbreaker authored and me-no-dev committed Apr 6, 2018
    Copy the full SHA
    7eb6fc5 View commit details
  8. Update WiFiMulti.cpp (espressif#1220)

    * Update WiFiMulti.cpp
    
    added 5 sec timeout from ESP8266
    
    * Update WiFiMulti.cpp
    
    * Update WiFiMulti.h
    c0zm0z authored and me-no-dev committed Apr 6, 2018
    Copy the full SHA
    2ded419 View commit details
  9. Copy the full SHA
    14ed6c4 View commit details
  10. Add Hardware Reset when Initing I2C peripheral (espressif#1201)

    This change uses the `_RST` bit of the i2c peripheral to force the hardware into power on reset state.  The prior code assumed the peripheral was already in a reset, it just cleared the reset bit.  
    
    Chuck.
    stickbreaker authored and me-no-dev committed Apr 6, 2018
    Copy the full SHA
    1cf4270 View commit details

Commits on Apr 7, 2018

  1. Update IDF to f586f5e (espressif#1296)

    * Update BLE lib
    
    * Update IDF to f586f5e
    
    * Restructure Bluetooth Serial includes
    
    * Update esptool and gen_esp32part
    
    * Add partition scheme selection for menuconfig
    
    * Add partition scheme selection for Arduino IDE
    
    * Fix BLE example
    
    * Second attempt BLE fix
    
    * Add exceptions to PIO
    me-no-dev authored Apr 7, 2018
    Copy the full SHA
    69f72ec View commit details

Commits on Apr 14, 2018

  1. Copy the full SHA
    febcda0 View commit details
  2. Additional partition scheme min_spiffs (espressif#1302)

    with minimal SPIFFS partition size and OTA support for bigger apps
    reaper7 authored and me-no-dev committed Apr 14, 2018
    Copy the full SHA
    4da5d46 View commit details
  3. Corrected Flash Mode (espressif#1205)

    Changed Flashmode to DIO due board only supports DIO
    nickoloss authored and me-no-dev committed Apr 14, 2018
    Copy the full SHA
    1da3138 View commit details

Commits on Apr 16, 2018

  1. Convert the few remaining cr/lf files to use lf for eol. (espressif#1316

    )
    
    If you develop on windows and need cr/lf files, see this:
    
        https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_formatting_and_whitespace
    
        Git can handle this by auto-converting CRLF line endings into LF
        when you add a file to the index, and vice versa when it checks out
        code onto your filesystem. You can turn on this functionality with
        the core.autocrlf setting. If you're on a Windows machine, set it
        to true - this converts LF endings into CRLF when you check out code:
    
        $ git config --global core.autocrlf true
    leres authored and me-no-dev committed Apr 16, 2018
    Copy the full SHA
    c92b617 View commit details
  2. Add guard to handle to check for _initialized (espressif#1321)

    The wifi stack initialisation must be complete before calling  `_udp_ota.parsePacket()` otherwise you just get a screen filled with 
    ```
    ```
    and due to the more async methods in ESP32 `handle()` may be called before this can occur.
    sticilface authored and me-no-dev committed Apr 16, 2018
    Copy the full SHA
    1424b6d View commit details

Commits on May 2, 2018

  1. Copy the full SHA
    6826508 View commit details

Commits on May 7, 2018

  1. Copy the full SHA
    bfed6eb View commit details

Commits on May 10, 2018

  1. Copy the full SHA
    b9ca922 View commit details
  2. Copy the full SHA
    cef5433 View commit details

Commits on May 14, 2018

  1. Fix WiFi.persistent(false); having no effect. (espressif#1406)

    This PR calls `esp_wifi_set_storage(WIFI_STORAGE_RAM);` when
      persistent WiFi configuration is not desired.
    everslick authored and me-no-dev committed May 14, 2018
    Copy the full SHA
    0ea9ea4 View commit details
  2. Copy the full SHA
    00f9624 View commit details
  3. Copy the full SHA
    611db61 View commit details
  4. Selectable (from menu) partitions for m5stack (espressif#1382)

    * Additional partition scheme min_spiffs
    with minimal SPIFFS partition size and OTA support for bigger apps
    
    * Selectable (from menu) partitions for m5stack
    
    addition for m5stack (as is prepared for lolin32 board: espressif#1379)
    
    discourse here: espressif#1378
    reaper7 authored and me-no-dev committed May 14, 2018
    Copy the full SHA
    6f12b69 View commit details
  5. Copy the full SHA
    f8a3c61 View commit details
  6. Copy the full SHA
    7bf1f47 View commit details
  7. std::functioanl for WFIF event + Minor fix (espressif#1366)

    * add missing bits from esp8266 to help porting other libs
    
    * Clean Up of Wifi event
    
    * Exampl of Wifi Events
    timpur authored and me-no-dev committed May 14, 2018
    Copy the full SHA
    6bf7619 View commit details
  8. Adding a getClockDivider function (espressif#1355)

    * Adding getClockDivider function
    
    * indentation correction
    BuzzRage authored and me-no-dev committed May 14, 2018
    Copy the full SHA
    f5246cf View commit details
  9. Convert - to _ in build.board names (espressif#1341)

    build.board is used to define a macro but - is not a permitted character in macro names. This causes the macro name to actually be only everything up to the first - and also many warnings when compiling for one of these boards:
    
    <command-line>:0:14: warning: ISO C++11 requires whitespace after the macro name
    
    <command-line>:0:14: warning: ISO C99 requires whitespace after the macro name
    
    I have followed the convention of the other build.board names by replacing - with _.
    per1234 authored and me-no-dev committed May 14, 2018
    Copy the full SHA
    25678f4 View commit details
  10. Copy the full SHA
    848cf98 View commit details
  11. WiFi disconnect reason message updated (espressif#1323)

    wifi_err_reason_t doesn't have reason code 12. After reason code 11, we are getting wrong wifi disconnected reason message. Added "UNSPECIFIED"  in place of reason code 12.
    And above 201 reason code, it should be r-176 instead of r-177. Because messages are started from zeroth offset.
    rmshub authored and me-no-dev committed May 14, 2018
    Copy the full SHA
    f14de5c View commit details
  12. Fix wrong range of duty cycle (espressif#1353)

    The esp-idf expects duty values for the the sigma delta modulator in the range of -128 to 127
    The arduino framework is supposed to use the range 0-255 thus the offset caclulation was wrong.
    mmone authored and me-no-dev committed May 14, 2018
    Copy the full SHA
    dd639c4 View commit details

Commits on May 22, 2018

  1. Use esp_timer_get_time as time source for micros and mills (espressif…

    …#1424)
    
    esp_timer_get_time returns monotonic time in microseconds, as a 64-bit
    number. It can be called from tasks and interrupts, does not use any
    critical sections/mutexes, and is thread safe.
    igrr authored and me-no-dev committed May 22, 2018
    Copy the full SHA
    93c45af View commit details

Commits on May 23, 2018

  1. Add SYSTEM_EVENT_WIFI_READY call back + WiFiMode fixes (espressif#1322

    )
    
    * Add `SYSTEM_EVENT_WIFI_READY` call back once wifi service is init.  allows you to hook in, as the sdk does not generate this event for you.
    As it stands the SDK does not appear to set `WIFI_MODE_NULL` correctly.  if the wifi is initialised and set to `WIFI_MODE_NULL` it actually defaults to AP mode.  This fix keeps `WIFI_MODE_NULL` within the ESP class if the wifi has not been init yet, and works in my testing.  albeit a one sided conversation.
    espressif#1306
    
    * make changes compatible with new _persistent behaviour.
    sticilface authored and me-no-dev committed May 23, 2018
    Copy the full SHA
    c24a340 View commit details

Commits on May 25, 2018

  1. Copy the full SHA
    4ad27b4 View commit details
  2. Added IIC pins (espressif#1436)

    Added IIC pins. I can confirm that this is working!
    timkoers authored and me-no-dev committed May 25, 2018
    Copy the full SHA
    7aa8fc4 View commit details
  3. Selectable (from menu) partitions for MH ET LIVE boards (espressif#1430)

    * Additional partition scheme min_spiffs
    with minimal SPIFFS partition size and OTA support for bigger apps
    
    * Selectable (from menu) partitions for m5stack
    
    addition for m5stack (as is prepared for lolin32 board: espressif#1379)
    
    discourse here: espressif#1378
    
    * Selectable (from menu) partitions for MH ET LIVE boards
    in reference to other boards (m5stack, lolin32)
    this PR adds partition scheme selection for MH ET LIVE boards
    also adds Core Debug Level selection for above boards
    reaper7 authored and me-no-dev committed May 25, 2018
    Copy the full SHA
    e733899 View commit details

Commits on May 26, 2018

  1. Copy the full SHA
    9570b77 View commit details

Commits on May 28, 2018

  1. Update commented pins in SPI Multi example

    Update commented pins so people do not get confused and try to use them
    me-no-dev authored May 28, 2018
    Copy the full SHA
    900e0a0 View commit details

Commits on May 31, 2018

  1. Add submodule of Azure IoT library (espressif#1448)

    * Add submodule of Azure IoT library
    
    * update the submodule of AzureIoT
    lirenhe authored and me-no-dev committed May 31, 2018
    Copy the full SHA
    40d85ce View commit details
  2. Copy the full SHA
    03808e3 View commit details
  3. [OTA] Add UserSelectable timeout for invitation to device + check for…

    … OK result in the last few messages (espressif#1445)
    tsathishkumar authored and me-no-dev committed May 31, 2018
    Copy the full SHA
    7b243ad View commit details
  4. Update espota.exe

    me-no-dev committed May 31, 2018
    Copy the full SHA
    a7b627c View commit details
  5. Copy the full SHA
    89859f7 View commit details

Commits on Jun 18, 2018

  1. Add "ODROID ESP32" boards support (espressif#1506)

    Seungchul Lee authored and me-no-dev committed Jun 18, 2018
    Copy the full SHA
    8e4ebf4 View commit details
  2. add support for TXT records in mDNS query responses (espressif#1480)

    * add methods for getting TXTs.
    
    * add methods for getting TXTs.
    horihiro authored and me-no-dev committed Jun 18, 2018
    Copy the full SHA
    83810fa View commit details
  3. Added SPI bus pins (espressif#1454)

    Added SPI bus pins and tested them as well
    timkoers authored and me-no-dev committed Jun 18, 2018
    Copy the full SHA
    c63d746 View commit details

Commits on Jun 19, 2018

  1. Copy the full SHA
    d06fa8e View commit details
  2. Copy the full SHA
    33392af View commit details
Showing 2,976 changed files with 557,509 additions and 283,437 deletions.
246 changes: 246 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
# Clang format version: 18.1.3
---
BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
AlignFunctionPointers: false
PadOperators: true
AlignConsecutiveBitFields:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
AlignFunctionPointers: false
PadOperators: false
AlignConsecutiveDeclarations:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
AlignFunctionPointers: false
PadOperators: false
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
AlignFunctionPointers: false
PadOperators: false
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCaseColons: false
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments:
Kind: Always
OverEmptyLines: 0
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowBreakBeforeNoexceptSpecifier: Never
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: true
AllowShortCompoundRequirementOnASingleLine: true
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
AttributeMacros:
- __capability
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: Both
BraceWrapping:
AfterCaseLabel: true
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakAdjacentStringLiterals: true
BreakAfterAttributes: Always
BreakAfterJavaFieldAnnotations: false
BreakArrays: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Custom
BreakBeforeConceptDeclarations: Always
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
BreakStringLiterals: true
ColumnLimit: 160
CommentPragmas: ""
CompactNamespaces: false
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IfMacros:
- KJ_IF_MAYBE
IncludeBlocks: Preserve
IncludeCategories:
- Regex: ^"(llvm|llvm-c|clang|clang-c)/
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: ^(<|"(gtest|gmock|isl|json)/)
Priority: 3
SortPriority: 0
CaseSensitive: false
- Regex: .*
Priority: 1
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: ""
IncludeIsMainSourceRegex: ""
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: true
IndentExternBlock: NoIndent
IndentGotoLabels: false
IndentPPDirectives: None
IndentRequiresClause: false
IndentWidth: 2
IndentWrappedFunctionNames: true
InsertBraces: true
InsertNewlineAtEOF: true
InsertTrailingCommas: None
IntegerLiteralSeparator:
Binary: 0
BinaryMinDigits: 0
Decimal: 0
DecimalMinDigits: 0
Hex: 0
HexMinDigits: 0
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtEOF: false
KeepEmptyLinesAtTheStartOfBlocks: true
LambdaBodyIndentation: Signature
Language: Cpp
LineEnding: LF
MacroBlockBegin: ""
MacroBlockEnd: ""
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PPIndentWidth: -1
PackConstructorInitializers: BinPack
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakScopeResolution: 500
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
QualifierAlignment: Leave
ReferenceAlignment: Pointer
ReflowComments: false
RemoveBracesLLVM: false
RemoveParentheses: Leave
RemoveSemicolon: false
RequiresClausePosition: OwnLine
RequiresExpressionIndentation: OuterScope
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SkipMacroDefinitionBody: false
SortIncludes: Never
SortJavaStaticImport: Before
SortUsingDeclarations: LexicographicNumeric
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeJsonColon: false
SpaceBeforeParens: ControlStatements
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: true
AfterFunctionDeclarationName: false
AfterFunctionDefinitionName: false
AfterIfMacros: true
AfterOverloadedOperator: true
AfterPlacementOperator: true
AfterRequiresInClause: false
AfterRequiresInExpression: false
BeforeNonEmptyParentheses: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: Never
SpacesInContainerLiterals: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParens: Never
SpacesInParensOptions:
InConditionalStatements: false
InCStyleCasts: false
InEmptyParentheses: false
Other: false
SpacesInSquareBrackets: false
Standard: Auto
StatementAttributeLikeMacros:
- Q_EMIT
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 2
UseTab: Never
VerilogBreakBetweenInstancePorts: true
WhitespaceSensitiveMacros:
- BOOST_PP_STRINGIZE
- CF_SWIFT_NAME
- NS_SWIFT_NAME
- PP_STRINGIZE
- STRINGIZE
BracedInitializerIndentWidth: 2
8 changes: 8 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[codespell]
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check/.codespellrc
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
ignore-words-list = ba,licence,ot,dout,als,exten,emac
skip = ./.git,./.licenses,__pycache__,.clang-format,.codespellrc,.editorconfig,.flake8,.prettierignore,.yamllint.yml,.gitignore,boards.txt,platform.txt,programmers.txt
builtin = clear,informal,en-GB_to_en-US
check-filenames =
check-hidden =
60 changes: 60 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/general/.editorconfig
# See: https://editorconfig.org/
# The formatting style defined in this file is the official standardized style to be used in all Arduino Tooling
# projects and should not be modified.
# Note: indent style for each file type is defined even when it matches the universal config in order to make it clear
# that this type has an official style.

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{adoc,asc,asciidoc}]
indent_size = 2
indent_style = space

[*.{bash,sh}]
indent_size = 4
indent_style = space

[*.{c,cc,cp,cpp,cxx,h,hh,hpp,hxx,ii,inl,ino,ixx,pde,tpl,tpp,txx}]
indent_size = 2
indent_style = space

[*.{go,mod}]
indent_style = tab

[*.java]
indent_size = 2
indent_style = space

[*.{js,jsx,json,jsonc,json5,ts,tsx}]
indent_size = 2
indent_style = space

[*.{md,mdx,mkdn,mdown,markdown}]
indent_size = unset
indent_style = space

[*.proto]
indent_size = 2
indent_style = space

[*.py]
indent_size = 4
indent_style = space

[*.svg]
indent_size = 2
indent_style = space

[*.{yaml,yml}]
indent_size = 2
indent_style = space

[{.gitconfig,.gitmodules}]
indent_style = tab
10 changes: 10 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-python/.flake8
# See: https://flake8.pycqa.org/en/latest/user/configuration.html

[flake8]
doctests = True
# W503 and W504 are mutually exclusive. PEP 8 recommends line break before.
ignore = W503,E203
max-complexity = 20
max-line-length = 120
select = E,W,F,C,N
Loading