Skip to content

code improvment suggestions(not issue) #2

@LaurentR59

Description

@LaurentR59

Hi

I would suggest some improvments for the lib ( I did not find a way to request by another way sorry for that!)

A/ Ability to support MAGTINYCORE "officialy" with CPU like ATTINY3217 3216 3227... as economic basic (and available) CPU challengers. TINY are close similar as MEGACOREX or DXCORE. ( TIMER, ...)

B/ led class should have for "blink" an option to finish at HIGH or LOW state. Like this a NEON TUBE START can be easily emulate with end state LIGHT ON of OFF ( for defect run) or many other uses for non stop run or determined ones.

C/ ability to manage more than 1 adress as principal adress.: let me explain the target object: imagine a loco decoder but not for function motor engine but for an on board unmotorised function vehicule managing ligh led only. (no motor driving needs)
If each object use a different "main" adress reference you will have many messages on DCC bus for the whole train.
If you select the same adress for each vheicule, making a sort of "train adress", you could reduce DCC trafic messages only on 1 adress considered as "main" but no possibility to manage individual item ( all listen the same adress) can be call by a different adress as "primary or pricipal.
On the "second main " adrress it should be possible to call light effects animations and managing pre set scenario. (ON/OFF animatic sequence)
So my first think was to flag with one active function on one dedicated adress the adress used and DCC messages decoded. (for the rest and maanging priority of DCC message routing according this setting)
It means It could request a "setMyAddress" in loop to swap on and process at next loop message on this "new second main adress".
Needs shoule be like this form: (main)PRIMARY, CONSIST, TRAIN_GROUP1, TYRAIN_GROUP2, TRAIN GROUP3,...
All this adresses are managed like CV17/18 ( except CONSIST on CV19) and can be load but for next step... it s clealy undefined!
May it could be with CONSIST support next improvment for the LIB and easiest way to manage function decoder.

Hope you could consider thesse requirement for futur releases

Many thanks by advance
Laurent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions