Shop OBEX P1 Docs P2 Docs Learn Events
Error "Expected a unique parameter name" — Parallax Forums

Error "Expected a unique parameter name"

msiriwardenamsiriwardena Posts: 301
edited 2021-01-23 22:09 in Propeller 2
I am trying to run "jm-7Seg_led_Demo_P2" then "expected a unique parameter name" error shows up at 1.main ().
when I take the "()" off ,then when I run(F10) same error shows up next to Setup().
Then when I remove the () from Setup, File "jm_max7219_ez" not found error appears. This file is in
the Desktop folder along with the Demo file and also in the Propeller tools library.
Any help is appreciated.

Thank you,

Siri
PS: The folder tab in Propeller tool apper as "P1 :7seg-led_Demo P2" - why P1 appear at the beginning of the name.
Siri
1920 x 1080 - 213K

Comments

  • The extension of that file is spin instead of spin2, so proptool will treat it as a P1 object and compile it with the P1 version of spin. Just rename it so the extension is spin2 and it should work.
  • @"Roy Eltham"

    The extension of the file is P2, and Proptool has no option to choose P2 and Jonnymac has named it as a P2 file.
    In the screen print the tab shows as "P1: 7seg_led_Demo.P2" come to look very closely it is -P as opposed to.P2.
    I will place the extension as you proposed and try it.
    Thanks for the help
    siri
  • @"Roy Eltham"

    I copied the file to jonnymac's P2 template and ran it and it worked and the P1 reference in the folder tab did not show up.

    Thanks you very much for the help.
    Siri
Sign In or Register to comment.