Coder Social home page Coder Social logo

jamisonderek / flipper-zero-tutorials Goto Github PK

View Code? Open in Web Editor NEW
566.0 28.0 43.0 18.84 MB

See README.md for link to Discord & YouTube. I will use this repository for my Flipper Zero projects & wiki.

License: MIT License

C 94.71% PowerShell 0.65% Python 0.43% JavaScript 4.21%
electronics flipper gpio subghz

flipper-zero-tutorials's People

Contributors

brodan avatar djamiso8-ford avatar jamisonderek avatar kitsunehunter avatar lionzxy avatar willy-jl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flipper-zero-tutorials's Issues

Rolling Flaws app crash

hexan — Yesterday at 2:08 AM
@codeallnight I don't know if you're already aware of this: flipper 1 with the Flaws app running, Flipper 2 sends a Nice FloR-S signal, Flipper 1 reboots with message "MPU fault, possibly stack overflow".

PowerShell function for converting Flipper SubGhz RAW Files

I watched your video about the CSV conversion and that inspired me to write a small PowerShell function to do that.
(Tried to comment on the video but it got deleted because of the link, I guess)

https://gist.github.com/r15ch13/0f82e368003a1e0150f97dc585fa2527

# Converts Flipper SubGhz RAW Files to PSCustomObject[]
function ConvertFrom-SubGhzRAW {
    param(
        [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)]
        [String] $Path
    )

    process {
        $data = Get-Content $Path
        if(!$data.Contains("Filetype: Flipper SubGhz RAW File")) {
            throw "$Path is not a Flipper SubGhz RAW File"
        }
        $data | Select-Object -Skip 5
        | ForEach-Object { $_.Replace("RAW_Data: ", "") }
        | Join-String -Separator " "
        | Select-String -Pattern '(\d+)\s(-\d+)' -AllMatches
        | ForEach-Object { $_.Matches }
        | ForEach-Object { [PSCustomObject]@{ Tone = $_.Groups[1]; Silence = $_.Groups[2] } }
    }
}

Copy and paste to console hit <Enter>, then run:

# convert one file
ConvertFrom-SubGhzRAW mysubfile.sub | ConvertTo-Csv | Out-File mycsvfile.csv
# convert every *.sub file in a directory
Get-ChildItem *.sub | ForEach-Object { ConvertFrom-Sub -Path $_ | ConvertTo-Csv | Out-File "$($_.BaseName).csv" }

Latest toolset gives build errors for lib\subghz\protocols\x10.c

    CC      lib\subghz\environment.c

lib\subghz\protocols\x10.c:76:18: error: initialization of 'SubGhzProtocolStatus (*)(void *, FlipperFormat *, SubGhzRadioPreset )' from incompatible pointer type '_Bool ()(void *, FlipperFormat *, SubGhzRadioPreset )' [-Werror=incompatible-pointer-types]
76 | .serialize = subghz_protocol_decoder_x10_serialize,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib\subghz\protocols\x10.c:76:18: note: (near initialization for 'subghz_protocol_x10_decoder.serialize')
lib\subghz\protocols\x10.c:77:20: error: initialization of 'SubGhzProtocolStatus (
)(void *, FlipperFormat )' from incompatible pointer type '_Bool ()(void *, FlipperFormat *)' [-Werror=incompatible-pointer-types]
77 | .deserialize = subghz_protocol_decoder_x10_deserialize,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib\subghz\protocols\x10.c:77:20: CC lib\subghz\receiver.c
note: (near initialization for 'subghz_protocol_x10_decoder.deserialize')

GPIO_BLINK: Discrepancy between README pinout and GPIO initialization mode

Hello,

I was running the code i noticed that the LED is initialized in GpioModeOutputOpenDrain mode:

furi_hal_gpio_init_simple(pin_led, GpioModeOutputOpenDrain);

However, the README suggests connecting the LED between the GPIO pin and GND. This setup would work if the GPIO pin was initialized in GpioModeOutputPushPull mode instead of GpioModeOutputOpenDrain.

Am I wrong?

I suggest changing the GPIO initialization mode to GpioModeOutputPushPull if the intention is to connect the LED between the GPIO pin and GND.

Thank you for your attention to this matter.

Unable to compile rolling codes app

When I try to follow methods 3 and 4 mentioned in this [document](flipper-zero-tutorials I receive the following error:

flipper-zero-tutorials\subghz\apps\rolling-flaws\rolling_flaws_subghz_receive.h:7:10: fatal error: lib/subghz/protocols/protocol_items.h: No such file or directory
    7 | #include <lib/subghz/protocols/protocol_items.h>

I'm unclear on what I'm missing

Wrong pins for I2C

The project readme docs here say SCL goes to Flipper pin 15 SDA to pin 16. Looking at the flipper docs that it reversed.
I tried a BLE280 sensor and found SCL ->16, SDA -> 15 works.

subghz error - unused parameter

Hi, I am trying to compile the subghz demo myself as part of a custom fw but I am getting an error due to unused parameter.
is there anyway I can add a compilation flag to just treat it as warning instead of an error ? (I know it is slightly offtopic to the actual subghz and has more to do with flipper app compilation).
Thanks.

    CC      applications/plugins/subghz_demo/subghz_demo_app.c

applications/plugins/subghz_demo/subghz_demo_app.c: In function 'subghz_demo_play_tone':
applications/plugins/subghz_demo/subghz_demo_app.c:282:48: error: unused parameter 'demo_context' [-Werror=unused-parameter]
282 | static void subghz_demo_play_tone(DemoContext* demo_context, DemoEvent* event) {
| ~~~~~~~~~~~~~^~~~~~~~~~~~
cc1: all warnings being treated as errors
scons: *** [build/f7-firmware-C/.extapps/Subghz_Demo/subghz_demo_app.o] Error 1
SDKCHK firmware/targets/f7/api_symbols.csv
API version 14.0 is up to date

Subject: Issue with Compiling Cookie Clicker and Skeleton App for the New Flipper Zero Firmware

Subject: Issue with Compiling Cookie Clicker and Skeleton App for the New Flipper Zero Firmware
I wanted to report an issue that the Cookie Clicker and Skeleton app cannot be compiled for the new Flipper Zero firmware. Although the skeleton app manages to compile, on the Flipper it shows an API mismatch when the 'continue' button is pressed, and the app works. However, the BT Cookie Clicker doesn't work and cannot proceed through ./fbt fap_dist. Will there be newer versions available? Thank you in advance.

Review the code that does "view_dispatcher_free" to make sure we do "view_dispatcher_remove_view" first.

Some firmwares (not sure which one) will assert if view_dispatcher_free is called without doing view_dispatcher_remove_view first.

Need to review the following files, to ensure the bug does not exist...

findstr /snip view_dispatcher_free *.c

gpio\wiegand\wiegand.c:94: view_dispatcher_free(app->view_dispatcher);
hid\hid_app\final_files\hid.c:232: view_dispatcher_free(app->view_dispatcher);
hid\hid_cookie\hid.c:160: view_dispatcher_free(app->view_dispatcher);
plugins\basic_scenes\basic_scenes.c:247: view_dispatcher_free(app->view_dispatcher);
plugins\knob_component\knob_demo_app.c:376: view_dispatcher_free(app->view_dispatcher);
plugins\scenes\scenes_demo_app.c:440: view_dispatcher_free(app->view_dispatcher);

New Serial Api

The Flipper Zero serial API has been updated in the latest release, and it doesn't seem to be backwards compatible with the old API. FuriHalUartID and UartIrqEvent no longer exist.

app crash during step 25 of basic scenes tutorial

When following along with the Basic Scenes tutorial, if you copy/paste properly and reach step 25, running the app is successful.

however, pressing the back button to close the app cause a crash:
Screenshot 2023-04-18 at 12 42 46 PM

I have not yet tested to see if this issue is resolved with some of the code later on in the post, but I feel that the app should be able to launch and close properly at this point in the tutorial before moving on

Wrong spot

I am using a iPhone se 3th gen, and it clicks somewhere below and to the left of the cookie.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.