Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

shiftIn return value misleading #116

Closed
Labels
@oclyke

Description

@oclyke

According to theshiftIn documentation the return parameter should bebyte. For symmetry with theshiftOut function it would make sense to returnuint8_t.

In this API the return value is currently specified aspin_size_t which can be eitheruint8_t oruint32_t

#ifdef EXTENDED_PIN_MODE// Platforms who wnat to declare more than 256 pins need to define EXTENDED_PIN_MODE globallytypedefuint32_tpin_size_t;#elsetypedefuint8_tpin_size_t;#endif

Suggest changing the declaration from:

pin_size_tshiftIn(pin_size_t dataPin,pin_size_t clockPin, BitOrder bitOrder);

to:

uint8_tshiftIn(pin_size_t dataPin,pin_size_t clockPin, BitOrder bitOrder);

Any reason not to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp