GET https://kbin.spritesserver.nl/u/@quiescentcurrent@discuss.tchncs.de/commented/2023-09-27::2023-09-27

Security

Token

There is no security token.

Firewall

main Name
Security enabled
Stateless

Configuration

Key Value
provider security.user.provider.concrete.app_user_provider
context main
entry_point App\Security\KbinAuthenticator
user_checker App\Security\UserChecker
access_denied_handler (none)
access_denied_url (none)
authenticators
[
  "two_factor"
  "remember_me"
  "App\Security\KbinAuthenticator"
  "App\Security\FacebookAuthenticator"
  "App\Security\GoogleAuthenticator"
  "App\Security\GithubAuthenticator"
  "App\Security\KeycloakAuthenticator"
]

Listeners

Listener Duration Response
Symfony\Component\Security\Http\Firewall\ChannelListener {#723
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
  -logger: Monolog\Logger {#783 …}
  -httpPort: 80
  -httpsPort: 443
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\ContextListener {#706
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage {#1017 …}
  -sessionKey: "_security_main"
  -logger: Monolog\Logger {#783 …}
  -userProviders: Symfony\Component\DependencyInjection\Argument\RewindableGenerator {#705 …}
  -dispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
  -registered: false
  -trustResolver: Scheb\TwoFactorBundle\Security\Authentication\AuthenticationTrustResolver {#780 …}
  -sessionTrackerEnabler: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage::enableUsageTracking(): void {#703 …}
}
0.89 ms (none)
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#584
  -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#595 …}
}
0.00 ms (none)
Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener {#582
  -twoFactorFirewallConfig: Scheb\TwoFactorBundle\Security\TwoFactor\TwoFactorFirewallConfig {#842 …}
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -twoFactorAccessDecider: Scheb\TwoFactorBundle\Security\Authorization\TwoFactorAccessDecider {#581 …}
}
0.04 ms (none)
Symfony\Component\Security\Http\Firewall\AccessListener {#579
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#937 …}
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\LogoutListener {#786
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -options: [
    "csrf_parameter" => "_csrf_token"
    "csrf_token_id" => "logout"
    "logout_path" => "app_logout"
  ]
  -httpUtils: Symfony\Component\Security\Http\HttpUtils {#841 …}
  -csrfTokenManager: Symfony\Component\Security\Csrf\CsrfTokenManager {#1015 …}
  -eventDispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
}
0.00 ms (none)

Authenticators

No authenticators have been recorded. Check previous profiles on your authentication endpoint.

Access Decision

affirmative Strategy
# Voter class
1
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
2
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
3
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
4
"Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter"
5
"App\Security\Voter\EntryCommentVoter"
6
"App\Security\Voter\EntryVoter"
7
"App\Security\Voter\MagazineVoter"
8
"App\Security\Voter\MessageThreadVoter"
9
"App\Security\Voter\MessageVoter"
10
"App\Security\Voter\NotificationVoter"
11
"App\Security\Voter\OAuth2UserConsentVoter"
12
"App\Security\Voter\PostCommentVoter"
13
"App\Security\Voter\PostVoter"
14
"App\Security\Voter\UserVoter"

Access decision log

# Result Attributes Object
1 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
2 DENIED moderate
App\Entity\Entry {#1433
  +user: App\Entity\User {#260 …}
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
  +image: Proxies\__CG__\App\Entity\Image {#1669 …}
  +domain: Proxies\__CG__\App\Entity\Domain {#1592 …}
  +slug: "Shift-register-missing-bits"
  +title: "Shift register missing bits"
  +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png"
  +body: """
    Hey friends,\n
    \n
    I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n
    \n
    The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n
    </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n
    </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n
    </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">for(int i=0; i&lt;17; i++){\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">    byte upper_byte = input_bin >> 8;\n
    </span><span style="color:#323232;">    byte lower_byte = input_bin &amp; 0x00FF;\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, LOW);\n
    </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n
    </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n
    </span><span style="color:#323232;">    usleep(10);\n
    </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, HIGH);\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">    delay(10)\n
    </span><span style="color:#323232;">    input_bin = input_bin>>1;\n
    </span><span style="color:#323232;">} \n
    </span>\n
    ```\n
    \n
    Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable.
    """
  +type: "image"
  +lang: "en"
  +isOc: false
  +hasEmbed: true
  +commentCount: 15
  +favouriteCount: 13
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1695882892 {#1642
    date: 2023-09-28 08:34:52.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1591 …}
  +votes: Doctrine\ORM\PersistentCollection {#1571 …}
  +reports: Doctrine\ORM\PersistentCollection {#1744 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1525 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1526 …}
  +badges: Doctrine\ORM\PersistentCollection {#1557 …}
  +children: [
    App\Entity\EntryComment {#1630
      +user: App\Entity\User {#260 …}
      +entry: App\Entity\Entry {#1433}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
      +image: null
      +parent: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
      +root: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
      +body: "You’re probably right, but that should only change the order of the outputs right?"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1695848390 {#1702
        date: 2023-09-27 22:59:50.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@quiescentcurrent@discuss.tchncs.de"
        "@Kalcifer@lemm.ee"
      ]
      +children: Doctrine\ORM\PersistentCollection {#2448 …}
      +nested: Doctrine\ORM\PersistentCollection {#2465 …}
      +votes: Doctrine\ORM\PersistentCollection {#1740 …}
      +reports: Doctrine\ORM\PersistentCollection {#1739 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2460 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2462 …}
      -id: 29928
      -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/comment/3308099"
      +editedAt: null
      +createdAt: DateTimeImmutable @1695848390 {#1620
        date: 2023-09-27 22:59:50.0 +02:00
      }
      +"title": 29928
    }
  ]
  -id: 2357
  -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1"
  -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1695910961
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/post/3882589"
  +editedAt: DateTimeImmutable @1695842569 {#1633
    date: 2023-09-27 21:22:49.0 +02:00
  }
  +createdAt: DateTimeImmutable @1695841461 {#1634
    date: 2023-09-27 21:04:21.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
3 DENIED edit
App\Entity\Entry {#1433
  +user: App\Entity\User {#260 …}
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
  +image: Proxies\__CG__\App\Entity\Image {#1669 …}
  +domain: Proxies\__CG__\App\Entity\Domain {#1592 …}
  +slug: "Shift-register-missing-bits"
  +title: "Shift register missing bits"
  +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png"
  +body: """
    Hey friends,\n
    \n
    I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n
    \n
    The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n
    </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n
    </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n
    </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">for(int i=0; i&lt;17; i++){\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">    byte upper_byte = input_bin >> 8;\n
    </span><span style="color:#323232;">    byte lower_byte = input_bin &amp; 0x00FF;\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, LOW);\n
    </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n
    </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n
    </span><span style="color:#323232;">    usleep(10);\n
    </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, HIGH);\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">    delay(10)\n
    </span><span style="color:#323232;">    input_bin = input_bin>>1;\n
    </span><span style="color:#323232;">} \n
    </span>\n
    ```\n
    \n
    Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable.
    """
  +type: "image"
  +lang: "en"
  +isOc: false
  +hasEmbed: true
  +commentCount: 15
  +favouriteCount: 13
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1695882892 {#1642
    date: 2023-09-28 08:34:52.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1591 …}
  +votes: Doctrine\ORM\PersistentCollection {#1571 …}
  +reports: Doctrine\ORM\PersistentCollection {#1744 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1525 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1526 …}
  +badges: Doctrine\ORM\PersistentCollection {#1557 …}
  +children: [
    App\Entity\EntryComment {#1630
      +user: App\Entity\User {#260 …}
      +entry: App\Entity\Entry {#1433}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
      +image: null
      +parent: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
      +root: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
      +body: "You’re probably right, but that should only change the order of the outputs right?"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1695848390 {#1702
        date: 2023-09-27 22:59:50.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@quiescentcurrent@discuss.tchncs.de"
        "@Kalcifer@lemm.ee"
      ]
      +children: Doctrine\ORM\PersistentCollection {#2448 …}
      +nested: Doctrine\ORM\PersistentCollection {#2465 …}
      +votes: Doctrine\ORM\PersistentCollection {#1740 …}
      +reports: Doctrine\ORM\PersistentCollection {#1739 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2460 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2462 …}
      -id: 29928
      -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/comment/3308099"
      +editedAt: null
      +createdAt: DateTimeImmutable @1695848390 {#1620
        date: 2023-09-27 22:59:50.0 +02:00
      }
      +"title": 29928
    }
  ]
  -id: 2357
  -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1"
  -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1695910961
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/post/3882589"
  +editedAt: DateTimeImmutable @1695842569 {#1633
    date: 2023-09-27 21:22:49.0 +02:00
  }
  +createdAt: DateTimeImmutable @1695841461 {#1634
    date: 2023-09-27 21:04:21.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
4 DENIED moderate
App\Entity\Entry {#1433
  +user: App\Entity\User {#260 …}
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
  +image: Proxies\__CG__\App\Entity\Image {#1669 …}
  +domain: Proxies\__CG__\App\Entity\Domain {#1592 …}
  +slug: "Shift-register-missing-bits"
  +title: "Shift register missing bits"
  +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png"
  +body: """
    Hey friends,\n
    \n
    I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n
    \n
    The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n
    </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n
    </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n
    </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">for(int i=0; i&lt;17; i++){\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">    byte upper_byte = input_bin >> 8;\n
    </span><span style="color:#323232;">    byte lower_byte = input_bin &amp; 0x00FF;\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, LOW);\n
    </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n
    </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n
    </span><span style="color:#323232;">    usleep(10);\n
    </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, HIGH);\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">    delay(10)\n
    </span><span style="color:#323232;">    input_bin = input_bin>>1;\n
    </span><span style="color:#323232;">} \n
    </span>\n
    ```\n
    \n
    Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable.
    """
  +type: "image"
  +lang: "en"
  +isOc: false
  +hasEmbed: true
  +commentCount: 15
  +favouriteCount: 13
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1695882892 {#1642
    date: 2023-09-28 08:34:52.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1591 …}
  +votes: Doctrine\ORM\PersistentCollection {#1571 …}
  +reports: Doctrine\ORM\PersistentCollection {#1744 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1525 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1526 …}
  +badges: Doctrine\ORM\PersistentCollection {#1557 …}
  +children: [
    App\Entity\EntryComment {#1630
      +user: App\Entity\User {#260 …}
      +entry: App\Entity\Entry {#1433}
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
      +image: null
      +parent: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
      +root: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
      +body: "You’re probably right, but that should only change the order of the outputs right?"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1695848390 {#1702
        date: 2023-09-27 22:59:50.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@quiescentcurrent@discuss.tchncs.de"
        "@Kalcifer@lemm.ee"
      ]
      +children: Doctrine\ORM\PersistentCollection {#2448 …}
      +nested: Doctrine\ORM\PersistentCollection {#2465 …}
      +votes: Doctrine\ORM\PersistentCollection {#1740 …}
      +reports: Doctrine\ORM\PersistentCollection {#1739 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2460 …}
      +notifications: Doctrine\ORM\PersistentCollection {#2462 …}
      -id: 29928
      -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/comment/3308099"
      +editedAt: null
      +createdAt: DateTimeImmutable @1695848390 {#1620
        date: 2023-09-27 22:59:50.0 +02:00
      }
      +"title": 29928
    }
  ]
  -id: 2357
  -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1"
  -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1695910961
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/post/3882589"
  +editedAt: DateTimeImmutable @1695842569 {#1633
    date: 2023-09-27 21:22:49.0 +02:00
  }
  +createdAt: DateTimeImmutable @1695841461 {#1634
    date: 2023-09-27 21:04:21.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
5 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
6 DENIED moderate
App\Entity\EntryComment {#1630
  +user: App\Entity\User {#260 …}
  +entry: App\Entity\Entry {#1433
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
    +image: Proxies\__CG__\App\Entity\Image {#1669 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1592 …}
    +slug: "Shift-register-missing-bits"
    +title: "Shift register missing bits"
    +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png"
    +body: """
      Hey friends,\n
      \n
      I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n
      \n
      The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n
      </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n
      </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n
      </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">for(int i=0; i&lt;17; i++){\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">    byte upper_byte = input_bin >> 8;\n
      </span><span style="color:#323232;">    byte lower_byte = input_bin &amp; 0x00FF;\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, LOW);\n
      </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n
      </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n
      </span><span style="color:#323232;">    usleep(10);\n
      </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, HIGH);\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">    delay(10)\n
      </span><span style="color:#323232;">    input_bin = input_bin>>1;\n
      </span><span style="color:#323232;">} \n
      </span>\n
      ```\n
      \n
      Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable.
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 15
    +favouriteCount: 13
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1695882892 {#1642
      date: 2023-09-28 08:34:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1591 …}
    +votes: Doctrine\ORM\PersistentCollection {#1571 …}
    +reports: Doctrine\ORM\PersistentCollection {#1744 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1525 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1526 …}
    +badges: Doctrine\ORM\PersistentCollection {#1557 …}
    +children: [
      App\Entity\EntryComment {#1630}
    ]
    -id: 2357
    -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1"
    -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1695910961
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/3882589"
    +editedAt: DateTimeImmutable @1695842569 {#1633
      date: 2023-09-27 21:22:49.0 +02:00
    }
    +createdAt: DateTimeImmutable @1695841461 {#1634
      date: 2023-09-27 21:04:21.0 +02:00
    }
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
  +image: null
  +parent: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
  +root: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
  +body: "You’re probably right, but that should only change the order of the outputs right?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1695848390 {#1702
    date: 2023-09-27 22:59:50.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@quiescentcurrent@discuss.tchncs.de"
    "@Kalcifer@lemm.ee"
  ]
  +children: Doctrine\ORM\PersistentCollection {#2448 …}
  +nested: Doctrine\ORM\PersistentCollection {#2465 …}
  +votes: Doctrine\ORM\PersistentCollection {#1740 …}
  +reports: Doctrine\ORM\PersistentCollection {#1739 …}
  +favourites: Doctrine\ORM\PersistentCollection {#2460 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2462 …}
  -id: 29928
  -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/3308099"
  +editedAt: null
  +createdAt: DateTimeImmutable @1695848390 {#1620
    date: 2023-09-27 22:59:50.0 +02:00
  }
  +"title": 29928
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
7 DENIED edit
App\Entity\EntryComment {#1630
  +user: App\Entity\User {#260 …}
  +entry: App\Entity\Entry {#1433
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
    +image: Proxies\__CG__\App\Entity\Image {#1669 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1592 …}
    +slug: "Shift-register-missing-bits"
    +title: "Shift register missing bits"
    +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png"
    +body: """
      Hey friends,\n
      \n
      I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n
      \n
      The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n
      </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n
      </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n
      </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">for(int i=0; i&lt;17; i++){\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">    byte upper_byte = input_bin >> 8;\n
      </span><span style="color:#323232;">    byte lower_byte = input_bin &amp; 0x00FF;\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, LOW);\n
      </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n
      </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n
      </span><span style="color:#323232;">    usleep(10);\n
      </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, HIGH);\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">    delay(10)\n
      </span><span style="color:#323232;">    input_bin = input_bin>>1;\n
      </span><span style="color:#323232;">} \n
      </span>\n
      ```\n
      \n
      Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable.
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 15
    +favouriteCount: 13
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1695882892 {#1642
      date: 2023-09-28 08:34:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1591 …}
    +votes: Doctrine\ORM\PersistentCollection {#1571 …}
    +reports: Doctrine\ORM\PersistentCollection {#1744 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1525 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1526 …}
    +badges: Doctrine\ORM\PersistentCollection {#1557 …}
    +children: [
      App\Entity\EntryComment {#1630}
    ]
    -id: 2357
    -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1"
    -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1695910961
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/3882589"
    +editedAt: DateTimeImmutable @1695842569 {#1633
      date: 2023-09-27 21:22:49.0 +02:00
    }
    +createdAt: DateTimeImmutable @1695841461 {#1634
      date: 2023-09-27 21:04:21.0 +02:00
    }
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
  +image: null
  +parent: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
  +root: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
  +body: "You’re probably right, but that should only change the order of the outputs right?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1695848390 {#1702
    date: 2023-09-27 22:59:50.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@quiescentcurrent@discuss.tchncs.de"
    "@Kalcifer@lemm.ee"
  ]
  +children: Doctrine\ORM\PersistentCollection {#2448 …}
  +nested: Doctrine\ORM\PersistentCollection {#2465 …}
  +votes: Doctrine\ORM\PersistentCollection {#1740 …}
  +reports: Doctrine\ORM\PersistentCollection {#1739 …}
  +favourites: Doctrine\ORM\PersistentCollection {#2460 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2462 …}
  -id: 29928
  -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/3308099"
  +editedAt: null
  +createdAt: DateTimeImmutable @1695848390 {#1620
    date: 2023-09-27 22:59:50.0 +02:00
  }
  +"title": 29928
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
8 DENIED moderate
App\Entity\EntryComment {#1630
  +user: App\Entity\User {#260 …}
  +entry: App\Entity\Entry {#1433
    +user: App\Entity\User {#260 …}
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
    +image: Proxies\__CG__\App\Entity\Image {#1669 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1592 …}
    +slug: "Shift-register-missing-bits"
    +title: "Shift register missing bits"
    +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png"
    +body: """
      Hey friends,\n
      \n
      I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n
      \n
      The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n
      </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n
      </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n
      </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">for(int i=0; i&lt;17; i++){\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">    byte upper_byte = input_bin >> 8;\n
      </span><span style="color:#323232;">    byte lower_byte = input_bin &amp; 0x00FF;\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, LOW);\n
      </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n
      </span><span style="color:#323232;">    shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n
      </span><span style="color:#323232;">    usleep(10);\n
      </span><span style="color:#323232;">    digitalWrite(SHIFT_OUT_LATCH, HIGH);\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">    delay(10)\n
      </span><span style="color:#323232;">    input_bin = input_bin>>1;\n
      </span><span style="color:#323232;">} \n
      </span>\n
      ```\n
      \n
      Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable.
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 15
    +favouriteCount: 13
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1695882892 {#1642
      date: 2023-09-28 08:34:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1591 …}
    +votes: Doctrine\ORM\PersistentCollection {#1571 …}
    +reports: Doctrine\ORM\PersistentCollection {#1744 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1525 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1526 …}
    +badges: Doctrine\ORM\PersistentCollection {#1557 …}
    +children: [
      App\Entity\EntryComment {#1630}
    ]
    -id: 2357
    -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1"
    -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1695910961
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/3882589"
    +editedAt: DateTimeImmutable @1695842569 {#1633
      date: 2023-09-27 21:22:49.0 +02:00
    }
    +createdAt: DateTimeImmutable @1695841461 {#1634
      date: 2023-09-27 21:04:21.0 +02:00
    }
  }
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1552 …}
  +image: null
  +parent: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
  +root: Proxies\__CG__\App\Entity\EntryComment {#2411 …}
  +body: "You’re probably right, but that should only change the order of the outputs right?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1695848390 {#1702
    date: 2023-09-27 22:59:50.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@quiescentcurrent@discuss.tchncs.de"
    "@Kalcifer@lemm.ee"
  ]
  +children: Doctrine\ORM\PersistentCollection {#2448 …}
  +nested: Doctrine\ORM\PersistentCollection {#2465 …}
  +votes: Doctrine\ORM\PersistentCollection {#1740 …}
  +reports: Doctrine\ORM\PersistentCollection {#1739 …}
  +favourites: Doctrine\ORM\PersistentCollection {#2460 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2462 …}
  -id: 29928
  -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/3308099"
  +editedAt: null
  +createdAt: DateTimeImmutable @1695848390 {#1620
    date: 2023-09-27 22:59:50.0 +02:00
  }
  +"title": 29928
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
9 DENIED ROLE_ADMIN
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
10 DENIED ROLE_MODERATOR
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details